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 HttpRequest
public void setHttpMethod(String method)
setHttpMethod
in interface HttpRequest
public Enumeration<String> getAttributeNames()
getAttributeNames
in interface HttpRequest
public ResteasyAsynchronousContext getAsyncContext()
getAsyncContext
in interface HttpRequest
public MultivaluedMap<String,String> getFormParameters()
HttpRequest
getFormParameters
in interface HttpRequest
public MultivaluedMap<String,String> getDecodedFormParameters()
getDecodedFormParameters
in interface HttpRequest
public Object getAttribute(String attribute)
HttpRequest
getAttribute
in interface HttpRequest
public void setAttribute(String name, Object value)
setAttribute
in interface HttpRequest
public void removeAttribute(String name)
removeAttribute
in interface HttpRequest
public HttpHeaders getHttpHeaders()
getHttpHeaders
in interface HttpRequest
public InputStream getInputStream()
getInputStream
in interface HttpRequest
public void setInputStream(InputStream stream)
HttpRequest
setInputStream
in interface HttpRequest
public ResteasyUriInfo getUri()
getUri
in interface HttpRequest
public String getHttpMethod()
getHttpMethod
in interface HttpRequest
public void setRequestUri(URI requestUri) throws IllegalStateException
setRequestUri
in interface HttpRequest
IllegalStateException
public void setRequestUri(URI baseUri, URI requestUri) throws IllegalStateException
setRequestUri
in interface HttpRequest
IllegalStateException
public boolean isInitial()
isInitial
in interface HttpRequest
public NettyHttpResponse getResponse()
public boolean isKeepAlive()
public boolean is100ContinueExpected()
public void forward(String path)
forward
in interface HttpRequest
public boolean wasForwarded()
wasForwarded
in interface HttpRequest
Copyright © 2013. All Rights Reserved.