本文整理匯總了Java中org.jacpfx.common.Type.REST_GET屬性的典型用法代碼示例。如果您正苦於以下問題:Java Type.REST_GET屬性的具體用法?Java Type.REST_GET怎麽用?Java Type.REST_GET使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.jacpfx.common.Type
的用法示例。
在下文中一共展示了Type.REST_GET屬性的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: findAll
@Path("/findAll")
@OperationType(Type.REST_GET)
public void findAll(final Message message) {
dicovery.service("/userCommentsService",
onSuccessService(si -> si.operation("/fetchByArticleIdREST/:articleId",
onSuccessOp(op ->
getArticlesAndUpdateCommentURL(op, message),
fail -> message.reply(gson.toJson(repository.getAllArticles())))),
fail -> message.reply(gson.toJson(repository.getAllArticles()))));
}
示例2: findMax
@Path("/findMAX/:amount")
@OperationType(Type.REST_GET)
public void findMax(@PathParam("amount") final String amount, final Message message) {
dicovery.service("/userCommentsService",
onSuccessService(si -> si.operation("/fetchByArticleIdWS",
onSuccessOp(op ->
updateURL(message, op.getUrl(), repository.getAllArticles(Integer.valueOf(amount))),
fail -> message.reply(gson.toJson(repository.getAllArticles(Integer.valueOf(amount)))))),
fail -> message.reply(gson.toJson(repository.getAllArticles(Integer.valueOf(amount))))));
}
示例3: findComments
@Path("/comments/:articleId")
@OperationType(Type.REST_GET)
public void findComments(@PathParam("articleId") final String articleId, Message message) {
dicovery.service("/userCommentsService",
onSuccessService(si -> operation(articleId, message, si),
fail -> message.reply("/userCommentsService not available: " + fail.getMessage())));
}
示例4: findPage
@Path("/findPage/:page")
@OperationType(Type.REST_GET)
public void findPage(@PathParam("page") final String page, final Message message) {
dicovery.service("/userCommentsService",
onSuccessService(si -> si.operation("/fetchByArticleIdWS",
onSuccessOp(op -> complexPageReply(page, message, op),
fail -> simplePageReply(page, message))),
fail -> simplePageReply(page, message)));
}
示例5: fetchAllUserCommentsREST
@Path("/fetchAllREST")
@OperationType(Type.REST_GET)
public void fetchAllUserCommentsREST(Message message) {
findAll((value)-> message.reply(gson.toJson(value)));
}
示例6: fetchByArticleIdREST
@Path("/fetchByArticleIdREST/:articleId")
@OperationType(Type.REST_GET)
public void fetchByArticleIdREST(@PathParam("articleId") String articleId, Message message) {
findById((value)-> message.reply(gson.toJson(value)),articleId);
}
示例7: testSimpleString
@Path("/testSimpleString")
@OperationType(Type.REST_GET)
@Consumes("application/json")
public void testSimpleString(String name, WSMessageReply reply) {
reply.reply(name);
}
示例8: testSimpleObjectBySerialisation
@Path("/testSimpleObjectBySerialisation")
@OperationType(Type.REST_GET)
public void testSimpleObjectBySerialisation(PersonOne p1, WSMessageReply reply) {
reply.reply(p1.getName());
}
示例9: wsEndpointThree
@Path("/wsEndpointThree")
@OperationType(Type.REST_GET)
public void wsEndpointThree(String name,Message reply) {
System.out.println("wsEndpointThree-2: " + name + " :::" + this);
}
示例10: wsEndpointFour
@Path("/wsServiceTwoFour")
@OperationType(Type.REST_GET)
public void wsEndpointFour(String name,Message reply) {
System.out.println("wsServiceTwoFour-2: " + name + " :::" + this);
}