public class ThreadLocalMessageContext extends AbstractThreadLocalProxy<MessageContext> implements MessageContext
Constructor and Description |
---|
ThreadLocalMessageContext() |
Modifier and Type | Method and Description |
---|---|
Object |
get(Object key) |
<T> T |
getContent(Class<T> format) |
<T> T |
getContext(Class<T> contextClass) |
Object |
getContextualProperty(Object key) |
javax.ws.rs.core.HttpHeaders |
getHttpHeaders() |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest() |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse() |
javax.ws.rs.ext.Providers |
getProviders() |
javax.ws.rs.core.Request |
getRequest() |
<T,E> T |
getResolver(Class<T> resolverClass,
Class<E> resolveClazz) |
javax.ws.rs.core.SecurityContext |
getSecurityContext() |
javax.servlet.ServletConfig |
getServletConfig() |
javax.servlet.ServletContext |
getServletContext() |
javax.ws.rs.core.UriInfo |
getUriInfo() |
void |
put(Object key,
Object value) |
get, remove, set
public Object get(Object key)
get
in interface MessageContext
public <T> T getContext(Class<T> contextClass)
getContext
in interface MessageContext
public javax.ws.rs.core.HttpHeaders getHttpHeaders()
getHttpHeaders
in interface MessageContext
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
getHttpServletRequest
in interface MessageContext
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
getHttpServletResponse
in interface MessageContext
public javax.ws.rs.ext.Providers getProviders()
getProviders
in interface MessageContext
public javax.ws.rs.core.SecurityContext getSecurityContext()
getSecurityContext
in interface MessageContext
public javax.servlet.ServletConfig getServletConfig()
getServletConfig
in interface MessageContext
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface MessageContext
public javax.ws.rs.core.UriInfo getUriInfo()
getUriInfo
in interface MessageContext
public javax.ws.rs.core.Request getRequest()
getRequest
in interface MessageContext
public void put(Object key, Object value)
put
in interface MessageContext
public <T,E> T getResolver(Class<T> resolverClass, Class<E> resolveClazz)
getResolver
in interface MessageContext
public <T> T getContent(Class<T> format)
getContent
in interface MessageContext
public Object getContextualProperty(Object key)
getContextualProperty
in interface MessageContext
Apache CXF