public class NettyHttpRequest extends BaseHttpRequest
We have this abstraction so that we can reuse marshalling objects in a client framework and serverside framework
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
attributes |
protected SynchronousDispatcher |
dispatcher |
protected ResteasyHttpHeaders |
httpHeaders |
protected String |
httpMethod |
protected InputStream |
inputStream |
protected NettyHttpResponse |
response |
decodedFormParameters, formParameters, uri| Constructor and Description |
|---|
NettyHttpRequest(io.netty.channel.ChannelHandlerContext ctx,
ResteasyHttpHeaders httpHeaders,
ResteasyUriInfo uri,
String httpMethod,
SynchronousDispatcher dispatcher,
NettyHttpResponse response,
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() |
javax.ws.rs.core.HttpHeaders |
getHttpHeaders() |
String |
getHttpMethod() |
InputStream |
getInputStream() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getMutableHeaders() |
String |
getRemoteAddress()
Returns the Internet Protocol (IP) address of the client
or last proxy that sent the request.
|
String |
getRemoteHost()
Returns the fully qualified name of the client
or the last proxy that sent the request.
|
NettyHttpResponse |
getResponse() |
boolean |
is100ContinueExpected() |
boolean |
isFlushed() |
boolean |
isKeepAlive() |
void |
releaseContentBuffer() |
void |
removeAttribute(String name) |
void |
setAttribute(String name,
Object value) |
void |
setContentBuffer(io.netty.buffer.ByteBuf content) |
void |
setHttpMethod(String method) |
void |
setInputStream(InputStream stream)
If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream().
|
boolean |
wasForwarded() |
formParametersRead, getDecodedFormParameters, getFormParameters, getUri, isInitial, setRequestUri, setRequestUriprotected ResteasyHttpHeaders httpHeaders
protected SynchronousDispatcher dispatcher
protected String httpMethod
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 void setHttpMethod(String method)
public Enumeration<String> getAttributeNames()
public ResteasyAsynchronousContext getAsyncContext()
public boolean isFlushed()
public Object getAttribute(String attribute)
HttpRequestattribute - attribute namepublic void removeAttribute(String name)
public javax.ws.rs.core.HttpHeaders getHttpHeaders()
public InputStream getInputStream()
public void setInputStream(InputStream stream)
HttpRequeststream - input streampublic String getHttpMethod()
public NettyHttpResponse getResponse()
public boolean isKeepAlive()
public boolean is100ContinueExpected()
public void forward(String path)
public boolean wasForwarded()
public void setContentBuffer(io.netty.buffer.ByteBuf content)
public void releaseContentBuffer()
public String getRemoteHost()
HttpRequestString containing the fully
qualified name of the clientpublic String getRemoteAddress()
HttpRequestString containing the
IP address of the client that sent the requestCopyright © 2020 JBoss by Red Hat. All rights reserved.