| 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)
Deprecated.
|
EmbeddedTomcat |
EmbeddedTomcat.addContextEnvironmentAndResourceFromFile(String contextFile)
Deprecated.
|
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.addContextInitializationParameter(String name,
String value) |
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 listens per default for shutdown commands on port 8005 with the
shutdown command
SHUTDOWN. |
EmbeddedTomcat |
EmbeddedTomcat.enableCompression(int compressionMinSize,
String compressableMimeType) |
EmbeddedTomcat |
EmbeddedTomcat.enableNaming()
Enables JNDI naming which is disabled by default.
|
EmbeddedTomcat |
EmbeddedTomcat.setContextDirectory(String contextDirectory)
Sets the context directory.
|
EmbeddedTomcat |
EmbeddedTomcat.setContextFile(String contextFile)
Sets the location of the context file that configures this web application
|
EmbeddedTomcat |
EmbeddedTomcat.setContextFile(URL contextFileURL)
Sets the location of the context file that configures this web application
|
EmbeddedTomcat |
EmbeddedTomcat.setContextPath(String contextPath)
Sets the contextPath for the webapplication
|
EmbeddedTomcat |
EmbeddedTomcat.setHttpPort(int httpPort)
Sets the port the server is listening for http requests
|
EmbeddedTomcat |
EmbeddedTomcat.setHttpsPort(int httpsPort)
Sets the port the server is listening for https requests
|
EmbeddedTomcat |
EmbeddedTomcat.setKeyAlias(String keyAlias)
The alias used to for the server certificate in the keystore.
|
EmbeddedTomcat |
EmbeddedTomcat.setKeyStoreFile(String keyStoreFile)
The pathname of the keystore file where you have stored the server certificate to
be loaded.
|
EmbeddedTomcat |
EmbeddedTomcat.setKeyStorePass(String keyStorePass)
The password used to access the server certificate from the specified keystore
file.
|
EmbeddedTomcat |
EmbeddedTomcat.setMaxPostSize(int maxPostSize)
The maximum size in bytes of the POST which will be handled by the container FORM
URL parameter parsing.
|
EmbeddedTomcat |
EmbeddedTomcat.setPort(int port)
Deprecated.
Use
setHttpPort(int) instead |
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–2017. All rights reserved.