public final class TomcatServer extends AbstractEmbeddedServer
EmbeddedServer.ServletDesc
Modifier and Type | Field and Description |
---|---|
protected org.apache.catalina.Context |
context |
protected org.apache.catalina.startup.Tomcat |
tomcat |
maxConn, nThreads, port
Constructor and Description |
---|
TomcatServer() |
TomcatServer(String resDir) |
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
protected final org.apache.catalina.startup.Tomcat tomcat
protected final org.apache.catalina.Context context
public TomcatServer()
public TomcatServer(String resDir)
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)