JAX-RS @Context Options
source link: https://nixmash.com/java/jax-rs-context-options/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
JAX-RS @Context Options – NixMashSkip to content
WordPress Site Management for Small Business
Here's a good Stackoverflow thread on the types of objects that can be injected in JAX-RS with @Context. Good advice on checking the provider docs (RESTEasy vs Jersey, for instance.) Here's a partial listing, depending on your environment and provider.
javax.ws.rs.core.Application
javax.ws.rs.core.HttpHeaders
javax.ws.rs.core.Request
javax.ws.rs.core.SecurityContext
javax.ws.rs.core.UriInfo
javax.ws.rs.core.Configuration
javax.ws.rs.container.ResourceContext
javax.ws.rs.ext.Providers
javax.servlet.HttpServletRequest
javax.servlet.HttpServletResponse
javax.servlet.ServletConfig
javax.servlet.ServletContext
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK