uCosminexus Application Server, Web Service Development Guide

[Contents][Glossary][Index][Back][Next]

24.4 Context

With the root resource class, sub-resource class, or an exception mapping provider, you can use the Context annotation to acquire the context defined according to the JAX-RS 1.1 specifications. The JAX-RS engine supports the following types of context:

Although the information included in the context differs for each HTTP request, because the provider instances are singleton, the information included in javax.ws.rs.core.ext.Providers is always the same for each WAR file.

The following subsection describes the types of context supported by the JAX-RS engine.

Organization of this section
24.4.1 javax.ws.rs.core.UriInfo
24.4.2 javax.ws.rs.core.HttpHeaders
24.4.3 javax.ws.rs.core.Request
24.4.4 javax.ws.rs.core.SecurityContext
24.4.5 javax.ws.rs.core.ext.Providers
24.4.6 javax.servlet.ServletConfig
24.4.7 javax.servlet.ServletContext
24.4.8 javax.servlet.http.HttpServletRequest
24.4.9 javax.servlet.http.HttpServletResponse