public class HttpClientContextHandler extends AbstractClientContextHandler<io.netty.handler.codec.http.HttpResponse,io.netty.handler.codec.http.HttpRequest>
AbstractClientContextHandler.NewContextEventcorrelator, requestIdProviderlogger| Constructor and Description |
|---|
HttpClientContextHandler(RequestIdProvider requestIdProvider,
RequestCorrelator correlator) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addKey(io.netty.handler.codec.http.HttpRequest msg,
java.lang.String key,
java.lang.String value)
Adds a key to the message that is written.
|
protected java.lang.String |
getCurrentlyProcessingRequestId() |
protected boolean |
isAcceptableToRead(java.lang.Object msg)
Asserts whether the passed message is an acceptable object type to read.
|
protected boolean |
isAcceptableToWrite(java.lang.Object msg)
Asserts whether the passed message is an acceptable object type to write.
|
protected boolean |
isLastResponseFragmentToRead(java.lang.Object response) |
protected ContextKeySupplier |
newKeySupplierForRead(io.netty.handler.codec.http.HttpResponse msg)
Creates a new
ContextKeySupplier for the passed message that is being read. |
protected ContextKeySupplier |
newKeySupplierForWrite(io.netty.handler.codec.http.HttpRequest msg)
Creates a new
ContextKeySupplier for the passed message to be written. |
protected void |
newRequestIdRead(java.lang.String requestId) |
channelRead, userEventTriggered, writebind, close, connect, deregister, disconnect, flush, readchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughthandlerAdded, handlerRemoved, isSharablepublic HttpClientContextHandler(RequestIdProvider requestIdProvider, RequestCorrelator correlator)
protected boolean isAcceptableToRead(java.lang.Object msg)
AbstractContextHandlerisAcceptableToRead in class AbstractContextHandler<io.netty.handler.codec.http.HttpResponse,io.netty.handler.codec.http.HttpRequest>msg - Message that is being read.true if the message is acceptable.protected boolean isAcceptableToWrite(java.lang.Object msg)
AbstractContextHandlerisAcceptableToWrite in class AbstractContextHandler<io.netty.handler.codec.http.HttpResponse,io.netty.handler.codec.http.HttpRequest>msg - Message that is being written.true if the message is acceptable.protected void addKey(io.netty.handler.codec.http.HttpRequest msg,
java.lang.String key,
java.lang.String value)
AbstractContextHandleraddKey in class AbstractContextHandler<io.netty.handler.codec.http.HttpResponse,io.netty.handler.codec.http.HttpRequest>msg - Message that is being written.key - Key name to add.value - Key value to add.protected ContextKeySupplier newKeySupplierForWrite(io.netty.handler.codec.http.HttpRequest msg)
AbstractContextHandlerContextKeySupplier for the passed message to be written.newKeySupplierForWrite in class AbstractContextHandler<io.netty.handler.codec.http.HttpResponse,io.netty.handler.codec.http.HttpRequest>msg - Message to be written.ContextKeySupplierprotected ContextKeySupplier newKeySupplierForRead(io.netty.handler.codec.http.HttpResponse msg)
AbstractContextHandlerContextKeySupplier for the passed message that is being read.newKeySupplierForRead in class AbstractContextHandler<io.netty.handler.codec.http.HttpResponse,io.netty.handler.codec.http.HttpRequest>msg - Message that is being read.ContextKeySupplierprotected void newRequestIdRead(java.lang.String requestId)
newRequestIdRead in class AbstractClientContextHandler<io.netty.handler.codec.http.HttpResponse,io.netty.handler.codec.http.HttpRequest>protected java.lang.String getCurrentlyProcessingRequestId()
getCurrentlyProcessingRequestId in class AbstractClientContextHandler<io.netty.handler.codec.http.HttpResponse,io.netty.handler.codec.http.HttpRequest>protected boolean isLastResponseFragmentToRead(java.lang.Object response)
isLastResponseFragmentToRead in class AbstractClientContextHandler<io.netty.handler.codec.http.HttpResponse,io.netty.handler.codec.http.HttpRequest>