public class SseServerPipelineConfigurator<I> extends java.lang.Object implements PipelineConfigurator<HttpServerRequest<I>,HttpServerResponse<ServerSentEvent>>
PipelineConfigurator
implementation for Server Sent Events to
be used for SSE servers.Modifier and Type | Field and Description |
---|---|
static ServerSentEventEncoder |
SERVER_SENT_EVENT_ENCODER |
static java.lang.String |
SSE_ENCODER_HANDLER_NAME |
static java.lang.String |
SSE_RESPONSE_HEADERS_COMPLETER |
Constructor and Description |
---|
SseServerPipelineConfigurator() |
SseServerPipelineConfigurator(HttpServerPipelineConfigurator<I,?> serverPipelineConfigurator) |
Modifier and Type | Method and Description |
---|---|
void |
configureNewPipeline(io.netty.channel.ChannelPipeline pipeline)
A callback to configure the passed
pipeline . |
public static final java.lang.String SSE_ENCODER_HANDLER_NAME
public static final ServerSentEventEncoder SERVER_SENT_EVENT_ENCODER
public static final java.lang.String SSE_RESPONSE_HEADERS_COMPLETER
public SseServerPipelineConfigurator()
public SseServerPipelineConfigurator(HttpServerPipelineConfigurator<I,?> serverPipelineConfigurator)
public void configureNewPipeline(io.netty.channel.ChannelPipeline pipeline)
PipelineConfigurator
pipeline
. This will be invoked everytime a new netty pipeline is
created, which is whenever a new channel is established.configureNewPipeline
in interface PipelineConfigurator<HttpServerRequest<I>,HttpServerResponse<ServerSentEvent>>
pipeline
- The pipeline to configure.