public final class JettyServer extends AbstractEmbeddedServer
EmbeddedServer.ServletDesc
maxConn, nThreads, port
Constructor and Description |
---|
JettyServer() |
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() |
void |
setResourceBase(String resourceBaseUrl) |
void |
start() |
void |
stop() |
setMaxConnections, setNumThreads, setPort, waitUrlAvailable
public final EmbeddedServer.ServletDesc addServlet(String name, Class<? extends Servlet> servletClass, String mapping)
public final void addServletContextListener(Class<? extends ServletContextListener> scl)
public final void setResourceBase(String resourceBaseUrl)