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)
Is called for each message of type
I . |
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
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–2021 The Netty Project. All rights reserved.