Package org.jobrunr.dashboard.server.sse
Class ServerSentEventHandler
- java.lang.Object
-
- org.jobrunr.dashboard.server.sse.ServerSentEventHandler
-
- All Implemented Interfaces:
com.sun.net.httpserver.HttpHandler
,TeenyHttpHandler
- Direct Known Subclasses:
JobRunrSseHandler
public abstract class ServerSentEventHandler extends java.lang.Object implements TeenyHttpHandler
-
-
Constructor Summary
Constructors Constructor Description ServerSentEventHandler()
ServerSentEventHandler(java.lang.String contextPath)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract SseExchange
createSseExchange(com.sun.net.httpserver.HttpExchange httpExchange)
java.lang.String
getContextPath()
void
handle(com.sun.net.httpserver.HttpExchange httpExchange)
-
-
-
Method Detail
-
getContextPath
public java.lang.String getContextPath()
- Specified by:
getContextPath
in interfaceTeenyHttpHandler
-
handle
public void handle(com.sun.net.httpserver.HttpExchange httpExchange) throws java.io.IOException
- Specified by:
handle
in interfacecom.sun.net.httpserver.HttpHandler
- Throws:
java.io.IOException
-
createSseExchange
protected abstract SseExchange createSseExchange(com.sun.net.httpserver.HttpExchange httpExchange) throws java.io.IOException
- Throws:
java.io.IOException
-
-