Class BasicHttpServerCodec.Decoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.handler.codec.ByteToMessageDecoder
-
- io.netty.handler.codec.http.HttpObjectDecoder
-
- com.linkedin.alpini.netty4.misc.BasicHttpRequestDecoder
-
- com.linkedin.alpini.netty4.handlers.BasicHttpServerCodec.Decoder
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
- Enclosing class:
- BasicHttpServerCodec
protected class BasicHttpServerCodec.Decoder extends BasicHttpRequestDecoder
-
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
Decoder(int maxInitialLineLength, int maxHeaderSize, int maxChunkSize, boolean validateHeaders, int initialBufferSize)
Creates a new instance with the specified parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.netty.handler.codec.http.HttpMessage
createInvalidMessage()
protected io.netty.handler.codec.http.HttpMessage
createMessage(java.lang.String[] initialLine)
protected void
decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer, java.util.List<java.lang.Object> out)
-
Methods inherited from class com.linkedin.alpini.netty4.misc.BasicHttpRequestDecoder
isDecodingRequest
-
Methods inherited from class io.netty.handler.codec.http.HttpObjectDecoder
decodeLast, handleTransferEncodingChunkedWithContentLength, isContentAlwaysEmpty, isSwitchingToNonHttp1Protocol, reset, userEventTriggered
-
Methods inherited from class io.netty.handler.codec.ByteToMessageDecoder
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, isSharable
-
-
-
-
Method Detail
-
decode
protected void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer, java.util.List<java.lang.Object> out) throws java.lang.Exception
- Overrides:
decode
in classio.netty.handler.codec.http.HttpObjectDecoder
- Throws:
java.lang.Exception
-
createMessage
protected io.netty.handler.codec.http.HttpMessage createMessage(java.lang.String[] initialLine) throws java.lang.Exception
- Overrides:
createMessage
in classBasicHttpRequestDecoder
- Throws:
java.lang.Exception
-
createInvalidMessage
protected io.netty.handler.codec.http.HttpMessage createInvalidMessage()
- Overrides:
createInvalidMessage
in classBasicHttpRequestDecoder
-
-