HttpHandler
public class ServerSentEventHandler extends Object implements HttpHandler
Constructor | Description |
---|---|
ServerSentEventHandler() |
|
ServerSentEventHandler(ServerSentEventConnectionCallback callback) |
Modifier and Type | Method | Description |
---|---|---|
Set<ServerSentEventConnection> |
getConnections() |
|
void |
handleRequest(HttpServerExchange exchange) |
Handle the request.
|
public ServerSentEventHandler(ServerSentEventConnectionCallback callback)
public ServerSentEventHandler()
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
public Set<ServerSentEventConnection> getConnections()
Copyright © 2018. All rights reserved.