| Modifier and Type | Method and Description |
|---|---|
EmbeddedTomcat |
EmbeddedTomcat.addAllDependenciesAsResourceJar()
Adds all the dependencies specified in the pom.xml (except scope provided)
to the context as a resource jar.
|
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.addDependencyAsResourceJar(String groupId,
String artifact)
Adds the specified jar to the context as a resource jar.
|
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.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.setM2Directory(File m2Directory)
Sets the path to the Maven local repository.
|
EmbeddedTomcat |
EmbeddedTomcat.setPomFile(File pomFile)
Sets the location of the pom file.
|
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. |
Copyright © 2012. All Rights Reserved.