public class HttpContentStringLineDecoder
extends io.netty.handler.codec.MessageToMessageDecoder<io.netty.handler.codec.http.HttpContent>
StringLineDecoder but works on HttpContent. This handler will decode the HTTP
content as lines, separated by a new line.| Constructor and Description |
|---|
HttpContentStringLineDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpContent msg,
java.util.List<java.lang.Object> out) |
void |
handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredpublic void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
handlerRemoved in interface io.netty.channel.ChannelHandlerhandlerRemoved in class io.netty.channel.ChannelHandlerAdapterjava.lang.Exceptionprotected void decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpContent msg,
java.util.List<java.lang.Object> out)
throws java.lang.Exception
decode in class io.netty.handler.codec.MessageToMessageDecoder<io.netty.handler.codec.http.HttpContent>java.lang.Exception