public class NettyHttpMessage
extends org.apache.camel.support.DefaultMessage
Message.
This implementation allows direct access to the Netty FullHttpRequest using the getHttpRequest()
method.| Constructor and Description |
|---|
NettyHttpMessage(org.apache.camel.CamelContext camelContext,
io.netty.handler.codec.http.FullHttpRequest httpRequest,
io.netty.handler.codec.http.FullHttpResponse httpResponse) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.handler.codec.http.FullHttpRequest |
getHttpRequest() |
io.netty.handler.codec.http.FullHttpResponse |
getHttpResponse() |
org.apache.camel.support.DefaultMessage |
newInstance() |
void |
reset() |
void |
setHttpRequest(io.netty.handler.codec.http.FullHttpRequest httpRequest) |
void |
setHttpResponse(io.netty.handler.codec.http.FullHttpResponse httpResponse) |
createHeaders, getHeader, getHeader, getHeader, getHeader, getHeader, getHeader, getHeaders, hasHeaders, hasPopulatedHeaders, isTransactedRedelivered, populateInitialHeaders, removeHeader, removeHeaders, removeHeaders, setHeader, setHeaderscopy, copyFrom, copyFromWithNewBody, createBody, createMessageId, getBody, getBody, getBody, getCamelContext, getDataType, getExchange, getMandatoryBody, getMandatoryBody, getMessageId, getMessageTimestamp, hasDataType, hasMessageId, setBody, setBody, setBody, setCamelContext, setDataType, setExchange, setMessageId, toStringpublic NettyHttpMessage(org.apache.camel.CamelContext camelContext,
io.netty.handler.codec.http.FullHttpRequest httpRequest,
io.netty.handler.codec.http.FullHttpResponse httpResponse)
public void reset()
reset in interface org.apache.camel.Messagereset in class org.apache.camel.support.DefaultMessagepublic io.netty.handler.codec.http.FullHttpRequest getHttpRequest()
public void setHttpRequest(io.netty.handler.codec.http.FullHttpRequest httpRequest)
public io.netty.handler.codec.http.FullHttpResponse getHttpResponse()
public void setHttpResponse(io.netty.handler.codec.http.FullHttpResponse httpResponse)
public org.apache.camel.support.DefaultMessage newInstance()
newInstance in class org.apache.camel.support.DefaultMessageApache Camel