public class ServerSentEventDecoder
extends io.netty.handler.codec.MessageToMessageDecoder<io.netty.handler.codec.http.HttpContent>
ServerSentEvent| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_FIELD_LENGTH |
protected static io.netty.util.ByteProcessor |
SCAN_COLON_PROCESSOR |
protected static io.netty.util.ByteProcessor |
SCAN_EOL_PROCESSOR |
protected static io.netty.util.ByteProcessor |
SKIP_COLON_AND_WHITE_SPACE_PROCESSOR |
protected static io.netty.util.ByteProcessor |
SKIP_LINE_DELIMITERS_AND_SPACES_PROCESSOR |
protected static io.netty.util.ByteProcessor |
SKIP_TILL_LINE_DELIMITER_PROCESSOR |
| Constructor and Description |
|---|
ServerSentEventDecoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpContent httpContent,
java.util.List<java.lang.Object> out) |
protected static boolean |
isLineDelimiter(char c) |
protected static int |
scanAndFindColon(io.netty.buffer.ByteBuf byteBuf) |
protected static int |
scanAndFindEndOfLine(io.netty.buffer.ByteBuf byteBuf) |
protected static boolean |
skipColonAndWhiteSpaces(io.netty.buffer.ByteBuf byteBuf) |
protected static boolean |
skipLineDelimiters(io.netty.buffer.ByteBuf byteBuf) |
protected static boolean |
skipTillMatching(io.netty.buffer.ByteBuf byteBuf,
io.netty.util.ByteProcessor processor) |
acceptInboundMessage, channelReadchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerAdded, handlerRemoved, isSharablepublic static final int DEFAULT_MAX_FIELD_LENGTH
protected static final io.netty.util.ByteProcessor SKIP_TILL_LINE_DELIMITER_PROCESSOR
protected static final io.netty.util.ByteProcessor SKIP_LINE_DELIMITERS_AND_SPACES_PROCESSOR
protected static final io.netty.util.ByteProcessor SKIP_COLON_AND_WHITE_SPACE_PROCESSOR
protected static final io.netty.util.ByteProcessor SCAN_COLON_PROCESSOR
protected static final io.netty.util.ByteProcessor SCAN_EOL_PROCESSOR
protected void decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpContent httpContent,
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.Exceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws java.lang.Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterjava.lang.Exceptionprotected static int scanAndFindColon(io.netty.buffer.ByteBuf byteBuf)
protected static int scanAndFindEndOfLine(io.netty.buffer.ByteBuf byteBuf)
protected static boolean skipLineDelimiters(io.netty.buffer.ByteBuf byteBuf)
protected static boolean skipColonAndWhiteSpaces(io.netty.buffer.ByteBuf byteBuf)
protected static boolean skipTillMatching(io.netty.buffer.ByteBuf byteBuf,
io.netty.util.ByteProcessor processor)
protected static boolean isLineDelimiter(char c)