public final class Http1RequestHandler extends Http2RequestHandler
ChannelHandler.Sharable
Constructor and Description |
---|
Http1RequestHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
channelRead0(ChannelHandlerContext ctx,
FullHttpRequest request)
Please keep in mind that this method will be renamed to
messageReceived(ChannelHandlerContext, I) in 5.0. |
protected void |
sendResponse(ChannelHandlerContext ctx,
String streamId,
int latency,
FullHttpResponse response,
FullHttpRequest request) |
exceptionCaught
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded, handlerRemoved
protected void channelRead0(ChannelHandlerContext ctx, FullHttpRequest request) throws Exception
SimpleChannelInboundHandler
messageReceived(ChannelHandlerContext, I)
in 5.0.
Is called for each message of type I
.channelRead0
in class Http2RequestHandler
ctx
- the ChannelHandlerContext
which this SimpleChannelInboundHandler
belongs torequest
- the message to handleException
- is thrown if an error occurredprotected void sendResponse(ChannelHandlerContext ctx, String streamId, int latency, FullHttpResponse response, FullHttpRequest request)
sendResponse
in class Http2RequestHandler
Copyright © 2008–2018 The Netty Project. All rights reserved.