HttpServer
This commit is contained in:
@@ -58,6 +58,10 @@ public class HttpServer extends Server<String, HttpContext, HttpRequest, HttpRes
|
|||||||
this(null, System.currentTimeMillis(), resourceFactory);
|
this(null, System.currentTimeMillis(), resourceFactory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public HttpServer(Application application) {
|
||||||
|
this(application, System.currentTimeMillis(), application.getResourceFactory().createChild());
|
||||||
|
}
|
||||||
|
|
||||||
public HttpServer(Application application, long serverStartTime, ResourceFactory resourceFactory) {
|
public HttpServer(Application application, long serverStartTime, ResourceFactory resourceFactory) {
|
||||||
super(application, serverStartTime, "TCP", resourceFactory, new HttpDispatcherServlet());
|
super(application, serverStartTime, "TCP", resourceFactory, new HttpDispatcherServlet());
|
||||||
this.workExecutor = application == null ? null : application.getWorkExecutor();
|
this.workExecutor = application == null ? null : application.getWorkExecutor();
|
||||||
|
|||||||
Reference in New Issue
Block a user