Class Http2ConnectionHandler.BaseDecoder
java.lang.Object
io.netty.handler.codec.http2.Http2ConnectionHandler.BaseDecoder
- Direct Known Subclasses:
Http2ConnectionHandler.FrameDecoder, Http2ConnectionHandler.PrefaceDecoder
- Enclosing class:
Http2ConnectionHandler
private abstract class Http2ConnectionHandler.BaseDecoder
extends java.lang.Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidabstract voiddecode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out) voidbooleanDetermine if the HTTP/2 connection preface been sent.voidSend the preface if needed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BaseDecoder
private BaseDecoder()
-
-
Method Details
-
decode
public abstract void decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out) throws java.lang.Exception - Throws:
java.lang.Exception
-
handlerRemoved
- Throws:
java.lang.Exception
-
channelActive
- Throws:
java.lang.Exception
-
channelInactive
- Throws:
java.lang.Exception
-
prefaceSent
public boolean prefaceSent()Determine if the HTTP/2 connection preface been sent. -
sendPrefaceIfNeeded
Send the preface if needed.- Parameters:
ctx- theChannelHandlerContextto use.- Throws:
java.lang.Exception- thrown on error.
-