Top Fields Constructors Methods
io.undertow.server.handlers.sse

public Class ServerSentEventHandler

extends Object
implements HttpHandler
Class Inheritance
All Implemented Interfaces
io.undertow.server.HttpHandler
Imports
io.undertow.UndertowLogger, io.undertow.server.HttpHandler, .HttpServerExchange, io.undertow.util.Headers, .HttpString, .PathTemplateMatch, org.xnio.ChannelExceptionHandler, .ChannelListener, .ChannelListeners, .IoUtils, org.xnio.channels.StreamSinkChannel, java.io.IOException, java.util.Collections, .Map, .Set, java.util.concurrent.ConcurrentHashMap

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final ServerSentEventConnectionCallback
private final Set<ServerSentEventConnection>
private static final HttpString

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public Set<ServerSentEventConnection>
private void
public void
handleRequest(final HttpServerExchange
the HTTP request/response exchange
exchange
)

Implements io.undertow.server.HttpHandler.handleRequest.

Handle the request.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

callbackback to summary
private final ServerSentEventConnectionCallback callback
connectionsback to summary
private final Set<ServerSentEventConnection> connections
LAST_EVENT_IDback to summary
private static final HttpString LAST_EVENT_ID

Constructor Detail

ServerSentEventHandlerback to summary
public ServerSentEventHandler(ServerSentEventConnectionCallback callback)
ServerSentEventHandlerback to summary
public ServerSentEventHandler()

Method Detail

getConnectionsback to summary
public Set<ServerSentEventConnection> getConnections()
handleConnectback to summary
private void handleConnect(StreamSinkChannel channel, HttpServerExchange exchange)
handleRequestback to summary
public void handleRequest(final HttpServerExchange exchange) throws Exception

Implements io.undertow.server.HttpHandler.handleRequest.

Doc from io.undertow.server.HttpHandler.handleRequest.

Handle the request.

Parameters
exchange:HttpServerExchange

the HTTP request/response exchange

Annotations
@Override