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 InputStream |
inputStream |
protected NettyHttpResponse |
response |
protected ResteasyUriInfo |
uriInfo |
Constructor and Description |
---|
NettyHttpRequest(io.netty.channel.ChannelHandlerContext ctx,
ResteasyHttpHeaders httpHeaders,
ResteasyUriInfo uri,
String httpMethod,
SynchronousDispatcher dispatcher,
NettyHttpResponse response,
boolean is100ContinueExpected) |
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 response
public NettyHttpRequest(io.netty.channel.ChannelHandlerContext ctx, ResteasyHttpHeaders httpHeaders, ResteasyUriInfo uri, String httpMethod, SynchronousDispatcher dispatcher, NettyHttpResponse response, 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 boolean isFlushed()
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 © 2014. All rights reserved.