摘要:
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 阅读全文
摘要:
Previous sections have presented examples of annotated types, mostly annotated method parameters but also annotated fields of a class, for the injecti 阅读全文
摘要:
Security information is available by obtaining the SecurityContext using @Context, which is essentially the equivalent functionality available on the 阅读全文
摘要:
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 阅读全文
摘要:
Conditional GETs are a great way to reduce bandwidth, and potentially server-side performance, depending on how the information used to determine cond 阅读全文
摘要:
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 阅读全文
摘要:
A very important aspects of REST is hyperlinks, URIs, in representations that clients can use to transition the Web service to new application states 阅读全文
摘要:
@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 阅读全文
摘要:
Sometimes it is necessary to return additional information in response to a HTTP request. Such information may be built and returned using Response an 阅读全文
摘要:
Previous sections on @Produces and @Consumes referred to MIME media types of representations and showed resource methods that consume and produce the 阅读全文
摘要:
Parameters of a resource method may be annotated with parameter-based annotations to extract information from a request. A previous example presented 阅读全文
摘要:
JAX-RS provides a deployment agnostic abstract class Application for declaring root resource and provider classes, and root resource and provider sing 阅读全文