Class NettyHttpRequest
java.lang.Object
org.jboss.resteasy.plugins.server.BaseHttpRequest
org.jboss.resteasy.plugins.server.netty.NettyHttpRequest
- All Implemented Interfaces:
HttpRequest
Abstraction for an inbound http request on the server, or a response from a server to a client
We 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
FieldsModifier and TypeFieldDescriptionprotected SynchronousDispatcherprotected ResteasyHttpHeadersprotected Stringprotected InputStreamprotected NettyHttpResponseFields inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest
decodedFormParameters, formParameters, uri -
Constructor Summary
ConstructorsConstructorDescriptionNettyHttpRequest(io.netty.channel.ChannelHandlerContext ctx, ResteasyHttpHeaders httpHeaders, ResteasyUriInfo uri, String httpMethod, SynchronousDispatcher dispatcher, NettyHttpResponse response, boolean is100ContinueExpected) -
Method Summary
Modifier and TypeMethodDescriptionvoidgetAttribute(String attribute) jakarta.ws.rs.core.HttpHeadersbooleanbooleanbooleanvoidvoidremoveAttribute(String name) voidsetAttribute(String name, Object value) voidsetContentBuffer(io.netty.buffer.ByteBuf content) voidsetHttpMethod(String method) voidsetInputStream(InputStream stream) booleanMethods inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest
formParametersRead, getDecodedFormParameters, getFormParameters, getUri, isInitial, setRequestUri, setRequestUriMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.resteasy.spi.HttpRequest
getFormEntityPart, getFormEntityParts
-
Field Details
-
httpHeaders
-
dispatcher
-
httpMethod
-
inputStream
-
attributes
-
response
-
-
Constructor Details
-
NettyHttpRequest
public NettyHttpRequest(io.netty.channel.ChannelHandlerContext ctx, ResteasyHttpHeaders httpHeaders, ResteasyUriInfo uri, String httpMethod, SynchronousDispatcher dispatcher, NettyHttpResponse response, boolean is100ContinueExpected)
-
-
Method Details
-
getMutableHeaders
-
setHttpMethod
-
getAttributeNames
-
getAsyncContext
-
isFlushed
public boolean isFlushed() -
getAttribute
-
setAttribute
-
removeAttribute
-
getHttpHeaders
public jakarta.ws.rs.core.HttpHeaders getHttpHeaders() -
getInputStream
-
setInputStream
-
getHttpMethod
-
getResponse
-
isKeepAlive
public boolean isKeepAlive() -
is100ContinueExpected
public boolean is100ContinueExpected() -
forward
-
wasForwarded
public boolean wasForwarded() -
setContentBuffer
public void setContentBuffer(io.netty.buffer.ByteBuf content) -
releaseContentBuffer
public void releaseContentBuffer() -
getRemoteHost
-
getRemoteAddress
-