2016年4月16日
摘要: Previous sections have introduced the use of @Context. The JAX-RS specification presents all the standard JAX-RS Java types that may be used with @Con 阅读全文
posted @ 2016-04-16 23:42 huey2672 阅读(278) 评论(0) 推荐(0) 编辑
摘要: Previous sections have presented examples of annotated types, mostly annotated method parameters but also annotated fields of a class, for the injecti 阅读全文
posted @ 2016-04-16 23:39 huey2672 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Security information is available by obtaining the SecurityContext using @Context, which is essentially the equivalent functionality available on the  阅读全文
posted @ 2016-04-16 23:34 huey2672 阅读(308) 评论(0) 推荐(0) 编辑
摘要: By default the life-cycle of root resource classes is per-request, namely that a new instance of a root resource class is created every time the reque 阅读全文
posted @ 2016-04-16 23:19 huey2672 阅读(293) 评论(0) 推荐(0) 编辑
摘要: Conditional GETs are a great way to reduce bandwidth, and potentially server-side performance, depending on how the information used to determine cond 阅读全文
posted @ 2016-04-16 22:41 huey2672 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Previous sections have shown how to return HTTP responses and it is possible to return HTTP errors using the same mechanism. However, sometimes when p 阅读全文
posted @ 2016-04-16 22:20 huey2672 阅读(357) 评论(0) 推荐(0) 编辑
摘要: A very important aspects of REST is hyperlinks, URIs, in representations that clients can use to transition the Web service to new application states 阅读全文
posted @ 2016-04-16 21:03 huey2672 阅读(205) 评论(0) 推荐(0) 编辑
摘要: @Path may be used on classes and such classes are referred to as root resource classes. @Path may also be used on methods of root resource classes. Th 阅读全文
posted @ 2016-04-16 16:29 huey2672 阅读(380) 评论(0) 推荐(0) 编辑
摘要: Sometimes it is necessary to return additional information in response to a HTTP request. Such information may be built and returned using Response an 阅读全文
posted @ 2016-04-16 15:40 huey2672 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Previous sections on @Produces and @Consumes referred to MIME media types of representations and showed resource methods that consume and produce the 阅读全文
posted @ 2016-04-16 15:35 huey2672 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Parameters of a resource method may be annotated with parameter-based annotations to extract information from a request. A previous example presented 阅读全文
posted @ 2016-04-16 11:47 huey2672 阅读(273) 评论(0) 推荐(0) 编辑
摘要: JAX-RS provides a deployment agnostic abstract class Application for declaring root resource and provider classes, and root resource and provider sing 阅读全文
posted @ 2016-04-16 01:11 huey2672 阅读(318) 评论(0) 推荐(0) 编辑