public class RequestContext extends Object
Modifier and Type | Field and Description |
---|---|
protected javax.ws.rs.container.ContainerRequestContext |
containerRequestContext |
protected AtomicLong |
numberOfIncoming |
protected AtomicLong |
numberOfOutgoing |
protected boolean |
readCache |
protected javax.ws.rs.core.MultivaluedMap<String,String> |
searchableHeaders |
Constructor and Description |
---|
RequestContext(javax.ws.rs.container.ContainerRequestContext containerRequestContext,
boolean readCache)
Build a context for a request.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
getContainerRequestContextProperty(String name)
Get a container property from the RequestContext.
|
javax.ws.rs.core.MultivaluedMap<String,String> |
getHeaders() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getHeadersLowerCase() |
AtomicLong |
getNumberOfIncoming() |
AtomicLong |
getNumberOfOutgoing() |
javax.ws.rs.core.SecurityContext |
getSecurityContext() |
boolean |
isReadCache() |
protected final javax.ws.rs.container.ContainerRequestContext containerRequestContext
protected final boolean readCache
protected final AtomicLong numberOfIncoming
protected final AtomicLong numberOfOutgoing
public RequestContext(javax.ws.rs.container.ContainerRequestContext containerRequestContext, boolean readCache)
containerRequestContext
- context from the http request objectreadCache
- true if the cache should be checked for a responsepublic javax.ws.rs.core.SecurityContext getSecurityContext()
public <T> T getContainerRequestContextProperty(String name)
T
- Type of the property to getname
- Name of the propertypublic boolean isReadCache()
public AtomicLong getNumberOfIncoming()
public AtomicLong getNumberOfOutgoing()
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.