Class StaticFileHttpHandler
- java.lang.Object
-
- cn.boboweike.carrot.dashboard.server.AbstractHttpExchangeHandler
-
- cn.boboweike.carrot.dashboard.server.http.StaticFileHttpHandler
-
- All Implemented Interfaces:
HttpExchangeHandler,HttpHandler,AutoCloseable
- Direct Known Subclasses:
CarrotStaticFileHandler
public class StaticFileHttpHandler extends AbstractHttpExchangeHandler
-
-
Constructor Summary
Constructors Constructor Description StaticFileHttpHandler(String contextPath, String rootDir)StaticFileHttpHandler(String contextPath, String rootDir, boolean singlePageApp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContextPath()voidhandle(HttpExchange httpExchange)-
Methods inherited from class cn.boboweike.carrot.dashboard.server.AbstractHttpExchangeHandler
close
-
-
-
-
Method Detail
-
getContextPath
public String getContextPath()
-
handle
public void handle(HttpExchange httpExchange)
-
-