Package com.linkedin.alpini.netty4.http2
Class Http2StreamFrameServerCodec
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelDuplexHandler
-
- io.netty.handler.codec.MessageToMessageCodec<io.netty.handler.codec.http2.Http2StreamFrame,io.netty.handler.codec.http.HttpObject>
-
- com.linkedin.alpini.netty4.http2.AbstractHttp2StreamFrameCodec
-
- com.linkedin.alpini.netty4.http2.Http2StreamFrameServerCodec
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,io.netty.channel.ChannelOutboundHandler
@Sharable public class Http2StreamFrameServerCodec extends AbstractHttp2StreamFrameCodec
-
-
Field Summary
Fields Modifier and Type Field Description static io.netty.handler.codec.http.HttpVersionHTTP_2_0-
Fields inherited from class com.linkedin.alpini.netty4.http2.AbstractHttp2StreamFrameCodec
HTTP_TO_HTTP2_HEADER_DENY_LIST
-
-
Constructor Summary
Constructors Constructor Description Http2StreamFrameServerCodec()Http2StreamFrameServerCodec(io.netty.handler.codec.http.HttpVersion httpVersion, boolean validateHeaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.netty.handler.codec.http.FullHttpMessagenewFullMessage(int id, io.netty.handler.codec.http2.Http2Headers headers, boolean validateHttpHeaders, io.netty.buffer.ByteBufAllocator alloc)protected io.netty.handler.codec.http.HttpMessagenewMessage(int id, io.netty.handler.codec.http2.Http2Headers headers, boolean validateHttpHeaders)protected io.netty.handler.codec.http2.Http2HeaderstoHttp2Headers(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpMessage msg, boolean validateHeaders)-
Methods inherited from class com.linkedin.alpini.netty4.http2.AbstractHttp2StreamFrameCodec
acceptInboundMessage, connectionChannel, connectionScheme, connectionSchemeAttribute, decode, encode, handlerAdded, isSsl
-
Methods inherited from class io.netty.handler.codec.MessageToMessageCodec
acceptOutboundMessage, channelRead, write
-
Methods inherited from class io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, read
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharable
-
-
-
-
Method Detail
-
toHttp2Headers
protected io.netty.handler.codec.http2.Http2Headers toHttp2Headers(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpMessage msg, boolean validateHeaders) throws io.netty.handler.codec.http2.Http2Exception- Specified by:
toHttp2Headersin classAbstractHttp2StreamFrameCodec- Throws:
io.netty.handler.codec.http2.Http2Exception
-
newMessage
protected io.netty.handler.codec.http.HttpMessage newMessage(int id, io.netty.handler.codec.http2.Http2Headers headers, boolean validateHttpHeaders) throws io.netty.handler.codec.http2.Http2Exception- Specified by:
newMessagein classAbstractHttp2StreamFrameCodec- Throws:
io.netty.handler.codec.http2.Http2Exception
-
newFullMessage
protected io.netty.handler.codec.http.FullHttpMessage newFullMessage(int id, io.netty.handler.codec.http2.Http2Headers headers, boolean validateHttpHeaders, io.netty.buffer.ByteBufAllocator alloc) throws io.netty.handler.codec.http2.Http2Exception- Specified by:
newFullMessagein classAbstractHttp2StreamFrameCodec- Throws:
io.netty.handler.codec.http2.Http2Exception
-
-