本文整理汇总了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);
}