| Modifier and Type | Method and Description |
|---|---|
EmbeddedTomcat |
EmbeddedTomcat.addContextEnvironment(org.apache.catalina.deploy.ContextEnvironment env)
Adds a
ContextEnvironment object to embedded Tomcat. |
EmbeddedTomcat |
EmbeddedTomcat.addContextEnvironment(String name,
String value,
String type)
Convenient method for adding a context environment to the embedded
Tomcat.
|
EmbeddedTomcat |
EmbeddedTomcat.addContextEnvironmentAndResourceFromFile(File contextFile)
Read ContextEnvironment and ContextResource definition from a text file.
|
EmbeddedTomcat |
EmbeddedTomcat.addContextEnvironmentAndResourceFromFile(String contextFile)
Read ContextEnvironment and ContextResource definition from a text file.
|
EmbeddedTomcat |
EmbeddedTomcat.addContextEnvironmentString(String name,
String value)
Convenient method for adding a context environment with type
java.lang.String to the embedded Tomcat.
|
EmbeddedTomcat |
EmbeddedTomcat.addContextResource(org.apache.catalina.deploy.ContextResource res)
Adds a
ContextResource object to the list of resources in the
embedded Tomcat. |
EmbeddedTomcat |
EmbeddedTomcat.addDefaultListeners()
Installs the default listeners AprLifecycleListener, JasperListener,
JreMemoryLeakPreventionListener, GlobalResourcesLifecycleListener and
ThreadLocalLeakPreventionListener during startup.
|
static EmbeddedTomcat |
EmbeddedTomcat.create()
Convenient method to create a embedded Tomcat that listens on port 8080
and with a context path of "/"
|
EmbeddedTomcat |
EmbeddedTomcat.dontAddShutdownHook()
The EmbeddedTomcat opens as default a shutdown port on port + 1000 with
the shutdown command
EMBEDDED_TC_SHUTDOWN Calling this
method disables adding the shutdown hook. |
EmbeddedTomcat |
EmbeddedTomcat.enableNaming()
Enables JNDI naming which is disabled by default.
|
EmbeddedTomcat |
EmbeddedTomcat.removeDefaultServlet()
Calling this method prevents adding the DefaultServlet to the context.
|
EmbeddedTomcat |
EmbeddedTomcat.setContextDirectory(String contextDirectory)
Sets the context directory.
|
EmbeddedTomcat |
EmbeddedTomcat.setContextPath(String contextPath)
Sets the contextPath for the webapplication
|
EmbeddedTomcat |
EmbeddedTomcat.setPort(int port)
Sets the port the server is listening for http requests
|
EmbeddedTomcat |
EmbeddedTomcat.setPrivileged(boolean privileged)
Set the privileged flag for this web application.
|
EmbeddedTomcat |
EmbeddedTomcat.setSecondsToWaitBeforePortBecomesAvailable(int seconds)
Before starting the embedded Tomcat the programm tries to stop a previous
process by sendig the shutdown command to the shutdown port.
|
EmbeddedTomcat |
EmbeddedTomcat.setShutdownPort(int shutdownPort)
Specifies the port the server is listen for the shutdown command.
|
EmbeddedTomcat |
EmbeddedTomcat.setSilent(boolean silent)
Set the silent flag of Tomcat.
|
EmbeddedTomcat |
EmbeddedTomcat.setTempDirectory(File tempDirectory)
Sets the location of the temporary directory.
|
EmbeddedTomcat |
EmbeddedTomcat.setTempDirectoryName(String name)
Sets the temporary directory to a directory beneath the target directory
The directory does not have to exists, Tomcat will create it automatically if necessary. |
EmbeddedTomcat |
EmbeddedTomcat.skipJarsContextConfig(String skipJars)
Additional JARs (over and above the default JARs set with
skipJarsDefaultJarScanner(String)) to skip when scanning for
Servlet 3.0 pluggability features. |
EmbeddedTomcat |
EmbeddedTomcat.skipJarsDefaultJarScanner(String skipJars)
List of JAR files that should not be scanned using the JarScanner
functionality.
|
EmbeddedTomcat |
EmbeddedTomcat.skipJarsTldConfig(String skipJars)
Additional JARs (over and above the default JARs set with
skipJarsDefaultJarScanner(String)) to skip when scanning for
TLDs. |
EmbeddedTomcat |
EmbeddedTomcat.useNio()
Instructs the embedded tomcat to use the Non Blocking Connector
(org.apache.coyote.http11.Http11NioProtocol) instead of the Blocking
Connector (org.apache.coyote.http11.Http11Protocol)
|
Copyright © 2012. All Rights Reserved.