public class ServerSentEventDecoder
extends io.netty.handler.codec.ByteToMessageDecoder
ServerSentEvent
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_FIELD_LENGTH |
protected static io.netty.buffer.ByteBufProcessor |
SCAN_COLON_PROCESSOR |
protected static io.netty.buffer.ByteBufProcessor |
SCAN_EOL_PROCESSOR |
protected static io.netty.buffer.ByteBufProcessor |
SKIP_COLON_AND_WHITE_SPACE_PROCESSOR |
protected static io.netty.buffer.ByteBufProcessor |
SKIP_LINE_DELIMITERS_AND_SPACES_PROCESSOR |
protected static io.netty.buffer.ByteBufProcessor |
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.buffer.ByteBuf in,
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.buffer.ByteBufProcessor processor) |
actualReadableBytes, callDecode, channelRead, channelReadComplete, decodeLast, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setSingleDecode
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
public static final int DEFAULT_MAX_FIELD_LENGTH
protected static final io.netty.buffer.ByteBufProcessor SKIP_TILL_LINE_DELIMITER_PROCESSOR
protected static final io.netty.buffer.ByteBufProcessor SKIP_LINE_DELIMITERS_AND_SPACES_PROCESSOR
protected static final io.netty.buffer.ByteBufProcessor SKIP_COLON_AND_WHITE_SPACE_PROCESSOR
protected static final io.netty.buffer.ByteBufProcessor SCAN_COLON_PROCESSOR
protected static final io.netty.buffer.ByteBufProcessor SCAN_EOL_PROCESSOR
protected void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, java.util.List<java.lang.Object> out) throws java.lang.Exception
decode
in class io.netty.handler.codec.ByteToMessageDecoder
java.lang.Exception
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class io.netty.handler.codec.ByteToMessageDecoder
java.lang.Exception
protected 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.buffer.ByteBufProcessor processor)
protected static boolean isLineDelimiter(char c)