public class HttpResponseHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpObject>
HttpResponse
. It evaluates the status code and triggers the appropriate
lifecycle methods at the passed ResultCallback
.Constructor and Description |
---|
HttpResponseHandler(HttpRequestProvider requestProvider,
ResultCallback<?> resultCallback) |
Modifier and Type | Method and Description |
---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpObject msg) |
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public HttpResponseHandler(HttpRequestProvider requestProvider, ResultCallback<?> resultCallback)
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpObject msg) throws java.lang.Exception
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpObject>
java.lang.Exception
Copyright © 2018. All Rights Reserved.