Class NettyHttpRequest
- java.lang.Object
-
- org.jboss.resteasy.plugins.server.BaseHttpRequest
-
- org.jboss.resteasy.plugins.server.netty.NettyHttpRequest
-
- All Implemented Interfaces:
HttpRequest
public class NettyHttpRequest extends BaseHttpRequest
Abstraction for an inbound http request on the server, or a response from a server to a clientWe have this abstraction so that we can reuse marshalling objects in a client framework and serverside framework
- Version:
- $Revision: 1 $
- Author:
- Bill Burke, Norman Maurer, Kristoffer Sjogren
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>attributesprotected SynchronousDispatcherdispatcherprotected ResteasyHttpHeadershttpHeadersprotected StringhttpMethodprotected InputStreaminputStreamprotected NettyHttpResponseresponse-
Fields inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest
decodedFormParameters, formParameters, uri
-
-
Constructor Summary
Constructors Constructor Description NettyHttpRequest(io.netty.channel.ChannelHandlerContext ctx, ResteasyHttpHeaders httpHeaders, ResteasyUriInfo uri, String httpMethod, SynchronousDispatcher dispatcher, NettyHttpResponse response, boolean is100ContinueExpected)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforward(String path)ResteasyAsynchronousContextgetAsyncContext()ObjectgetAttribute(String attribute)Enumeration<String>getAttributeNames()jakarta.ws.rs.core.HttpHeadersgetHttpHeaders()StringgetHttpMethod()InputStreamgetInputStream()jakarta.ws.rs.core.MultivaluedMap<String,String>getMutableHeaders()StringgetRemoteAddress()StringgetRemoteHost()NettyHttpResponsegetResponse()booleanis100ContinueExpected()booleanisFlushed()booleanisKeepAlive()voidreleaseContentBuffer()voidremoveAttribute(String name)voidsetAttribute(String name, Object value)voidsetContentBuffer(io.netty.buffer.ByteBuf content)voidsetHttpMethod(String method)voidsetInputStream(InputStream stream)booleanwasForwarded()-
Methods inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest
formParametersRead, getDecodedFormParameters, getFormParameters, getUri, isInitial, setRequestUri, setRequestUri
-
-
-
-
Field Detail
-
httpHeaders
protected ResteasyHttpHeaders httpHeaders
-
dispatcher
protected SynchronousDispatcher dispatcher
-
httpMethod
protected String httpMethod
-
inputStream
protected InputStream inputStream
-
response
protected NettyHttpResponse response
-
-
Constructor Detail
-
NettyHttpRequest
public NettyHttpRequest(io.netty.channel.ChannelHandlerContext ctx, ResteasyHttpHeaders httpHeaders, ResteasyUriInfo uri, String httpMethod, SynchronousDispatcher dispatcher, NettyHttpResponse response, boolean is100ContinueExpected)
-
-
Method Detail
-
setHttpMethod
public void setHttpMethod(String method)
-
getAttributeNames
public Enumeration<String> getAttributeNames()
-
getAsyncContext
public ResteasyAsynchronousContext getAsyncContext()
-
isFlushed
public boolean isFlushed()
-
removeAttribute
public void removeAttribute(String name)
-
getHttpHeaders
public jakarta.ws.rs.core.HttpHeaders getHttpHeaders()
-
getInputStream
public InputStream getInputStream()
-
setInputStream
public void setInputStream(InputStream stream)
-
getHttpMethod
public String getHttpMethod()
-
getResponse
public NettyHttpResponse getResponse()
-
isKeepAlive
public boolean isKeepAlive()
-
is100ContinueExpected
public boolean is100ContinueExpected()
-
forward
public void forward(String path)
-
wasForwarded
public boolean wasForwarded()
-
setContentBuffer
public void setContentBuffer(io.netty.buffer.ByteBuf content)
-
releaseContentBuffer
public void releaseContentBuffer()
-
getRemoteHost
public String getRemoteHost()
-
getRemoteAddress
public String getRemoteAddress()
-
-