Package cn.boboweike.carrot.dashboard
Class CarrotSseHandler
- java.lang.Object
-
- cn.boboweike.carrot.dashboard.server.AbstractHttpExchangeHandler
-
- cn.boboweike.carrot.dashboard.server.sse.ServerSentEventHandler
-
- cn.boboweike.carrot.dashboard.CarrotSseHandler
-
- All Implemented Interfaces:
HttpExchangeHandler,HttpHandler,AutoCloseable
public class CarrotSseHandler extends ServerSentEventHandler
-
-
Constructor Summary
Constructors Constructor Description CarrotSseHandler(PartitionedStorageProvider storageProvider, JsonMapper jsonMapper)CarrotSseHandler(String contextPath, PartitionedStorageProvider storageProvider, JsonMapper jsonMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SseExchangecreateSseExchange(HttpExchange httpExchange)-
Methods inherited from class cn.boboweike.carrot.dashboard.server.sse.ServerSentEventHandler
close, getContextPath, handle
-
-
-
-
Constructor Detail
-
CarrotSseHandler
public CarrotSseHandler(PartitionedStorageProvider storageProvider, JsonMapper jsonMapper)
-
CarrotSseHandler
public CarrotSseHandler(String contextPath, PartitionedStorageProvider storageProvider, JsonMapper jsonMapper)
-
-
Method Detail
-
createSseExchange
protected SseExchange createSseExchange(HttpExchange httpExchange) throws IOException
- Specified by:
createSseExchangein classServerSentEventHandler- Throws:
IOException
-
-