Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

What is javax.ws.rs.core.context? [ Part 1 ]

How to use the @Context annotation The JAX-RS API provides a very handy mechanism to inject a range of useful resources, such as HTTP Headers, into your endpoint. The @Context annotation is an all purpose annotation that injects instances of the following objects: HttpHeaders -> HTTP header parameters and values UriInfo -> Captures path variables and query parameters ...



This post first appeared on Java Code Geeks, please read the originial post: here

Share the post

What is javax.ws.rs.core.context? [ Part 1 ]

×

Subscribe to Java Code Geeks

Get updates delivered right to your inbox!

Thank you for your subscription

×