public interface EmbeddedServer
Modifier and Type | Interface and Description |
---|---|
static interface |
EmbeddedServer.ServletDesc |
Modifier and Type | Method and Description |
---|---|
EmbeddedServer.ServletDesc |
addServlet(String name,
Class<? extends Servlet> servletClass,
String mapping) |
void |
addServletContextListener(Class<? extends ServletContextListener> scl) |
void |
enableWebsockets() |
EmbeddedServer |
setMaxConnections(int maxConn) |
EmbeddedServer |
setNumThreads(int nThreads) |
EmbeddedServer |
setPort(int port) |
void |
setResourceBase(String resourceBaseUrl) |
void |
start() |
void |
stop() |
EmbeddedServer setPort(int port)
EmbeddedServer setNumThreads(int nThreads)
EmbeddedServer setMaxConnections(int maxConn)
EmbeddedServer.ServletDesc addServlet(String name, Class<? extends Servlet> servletClass, String mapping)
void addServletContextListener(Class<? extends ServletContextListener> scl)
void setResourceBase(String resourceBaseUrl)