public class NettyHttpRequest extends Object implements HttpRequest
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
attributes |
protected MultivaluedMap<String,String> |
decodedFormParameters |
protected SynchronousDispatcher |
dispatcher |
protected MultivaluedMap<String,String> |
formParameters |
protected ResteasyHttpHeaders |
httpHeaders |
protected String |
httpMethod |
protected NettyHttpResponse |
httpResponse |
protected InputStream |
inputStream |
protected ResteasyUriInfo |
uriInfo |
| Constructor and Description |
|---|
NettyHttpRequest(ResteasyHttpHeaders httpHeaders,
ResteasyUriInfo uri,
String httpMethod,
SynchronousDispatcher dispatcher,
NettyHttpResponse httpResponse,
boolean is100ContinueExpected) |
| Modifier and Type | Method and Description |
|---|---|
void |
forward(String path) |
ResteasyAsynchronousContext |
getAsyncContext() |
Object |
getAttribute(String attribute)
Map of contextual data.
|
Enumeration<String> |
getAttributeNames() |
MultivaluedMap<String,String> |
getDecodedFormParameters() |
MultivaluedMap<String,String> |
getFormParameters()
application/x-www-form-urlencoded parameters
This is here because @FormParam needs it and for when there are servlet filters that eat up the input stream
|
HttpHeaders |
getHttpHeaders() |
String |
getHttpMethod() |
InputStream |
getInputStream() |
MultivaluedMap<String,String> |
getMutableHeaders() |
NettyHttpResponse |
getResponse() |
ResteasyUriInfo |
getUri() |
boolean |
is100ContinueExpected() |
boolean |
isInitial() |
boolean |
isKeepAlive() |
void |
removeAttribute(String name) |
void |
setAttribute(String name,
Object value) |
void |
setHttpMethod(String method) |
void |
setInputStream(InputStream stream)
If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream().
|
void |
setRequestUri(URI requestUri) |
void |
setRequestUri(URI baseUri,
URI requestUri) |
boolean |
wasForwarded() |
protected ResteasyHttpHeaders httpHeaders
protected SynchronousDispatcher dispatcher
protected ResteasyUriInfo uriInfo
protected String httpMethod
protected MultivaluedMap<String,String> formParameters
protected MultivaluedMap<String,String> decodedFormParameters
protected InputStream inputStream
protected NettyHttpResponse httpResponse
public NettyHttpRequest(ResteasyHttpHeaders httpHeaders, ResteasyUriInfo uri, String httpMethod, SynchronousDispatcher dispatcher, NettyHttpResponse httpResponse, boolean is100ContinueExpected)
public MultivaluedMap<String,String> getMutableHeaders()
getMutableHeaders in interface HttpRequestpublic void setHttpMethod(String method)
setHttpMethod in interface HttpRequestpublic Enumeration<String> getAttributeNames()
getAttributeNames in interface HttpRequestpublic ResteasyAsynchronousContext getAsyncContext()
getAsyncContext in interface HttpRequestpublic MultivaluedMap<String,String> getFormParameters()
HttpRequestgetFormParameters in interface HttpRequestpublic MultivaluedMap<String,String> getDecodedFormParameters()
getDecodedFormParameters in interface HttpRequestpublic Object getAttribute(String attribute)
HttpRequestgetAttribute in interface HttpRequestpublic void setAttribute(String name, Object value)
setAttribute in interface HttpRequestpublic void removeAttribute(String name)
removeAttribute in interface HttpRequestpublic HttpHeaders getHttpHeaders()
getHttpHeaders in interface HttpRequestpublic InputStream getInputStream()
getInputStream in interface HttpRequestpublic void setInputStream(InputStream stream)
HttpRequestsetInputStream in interface HttpRequestpublic ResteasyUriInfo getUri()
getUri in interface HttpRequestpublic String getHttpMethod()
getHttpMethod in interface HttpRequestpublic void setRequestUri(URI requestUri) throws IllegalStateException
setRequestUri in interface HttpRequestIllegalStateExceptionpublic void setRequestUri(URI baseUri, URI requestUri) throws IllegalStateException
setRequestUri in interface HttpRequestIllegalStateExceptionpublic boolean isInitial()
isInitial in interface HttpRequestpublic NettyHttpResponse getResponse()
public boolean isKeepAlive()
public boolean is100ContinueExpected()
public void forward(String path)
forward in interface HttpRequestpublic boolean wasForwarded()
wasForwarded in interface HttpRequestCopyright © 2013. All Rights Reserved.