A C D E G M R S T 

A

addAllDependenciesAsResourceJar() - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Adds all the dependencies specified in the pom.xml (except scope provided) to the context as a resource jar.
addContextEnvironment(ContextEnvironment) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Adds a ContextEnvironment object to embedded Tomcat.
addContextEnvironment(String, String, String) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Convenient method for adding a context environment to the embedded Tomcat.
addContextEnvironmentAndResourceFromFile(File) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Read ContextEnvironment and ContextResource definition from a text file.
addContextEnvironmentAndResourceFromFile(String) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Read ContextEnvironment and ContextResource definition from a text file.
addContextEnvironmentString(String, String) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Convenient method for adding a context environment with type java.lang.String to the embedded Tomcat.
addContextResource(ContextResource) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Adds a ContextResource object to the list of resources in the embedded Tomcat.
addDependencyAsResourceJar(String, String) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Adds the specified jar to the context as a resource jar.
addEnvironment(ContextEnvironment) - Method in class ch.ralscha.embeddedtc.ContextConfig
 
addResource(ContextResource) - Method in class ch.ralscha.embeddedtc.ContextConfig
 

C

ch.ralscha.embeddedtc - package ch.ralscha.embeddedtc
 
ContextConfig - Class in ch.ralscha.embeddedtc
 
ContextConfig() - Constructor for class ch.ralscha.embeddedtc.ContextConfig
 
create() - Static method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Convenient method to create a embedded Tomcat that listens on port 8080 and with a context path of "/"
createDigester() - Static method in class ch.ralscha.embeddedtc.ContextConfig
 

D

doListBindings(String) - Method in class ch.ralscha.embeddedtc.TargetClassesContext
 
dontAddShutdownHook() - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
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.

E

EmbeddedTomcat - Class in ch.ralscha.embeddedtc
Helper class to simplify setting up a Embedded Tomcat in a IDE and with a Maven web project.
EmbeddedTomcat() - Constructor for class ch.ralscha.embeddedtc.EmbeddedTomcat
Creates an embedded Tomcat with context path "/" and port 8080.
EmbeddedTomcat(int) - Constructor for class ch.ralscha.embeddedtc.EmbeddedTomcat
Creates an embedded Tomcat with context path "/" and specified port.
EmbeddedTomcat(String) - Constructor for class ch.ralscha.embeddedtc.EmbeddedTomcat
Creates an embedded Tomcat with the specified context path and port 8080 Context directory points to current directory + /src/main/webapp Change context directory with the method setContextDirectory(String)
EmbeddedTomcat(String, int) - Constructor for class ch.ralscha.embeddedtc.EmbeddedTomcat
Creates an embedded Tomcat with specified context path and specified port.

G

getEnvironments() - Method in class ch.ralscha.embeddedtc.ContextConfig
 
getResources() - Method in class ch.ralscha.embeddedtc.ContextConfig
 

M

main(String[]) - Static method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Starts a embedded Tomcat on port 8080 with context path "/" and context directory current directory + /src/main/webapp

R

removeDefaultServlet() - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Calling this method prevents adding the DefaultServlet to the context.

S

setContextDirectory(String) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Sets the context directory.
setContextPath(String) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Sets the contextPath for the webapplication
setM2Directory(File) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Sets the path to the Maven local repository.
setPomFile(File) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Sets the location of the pom file.
setPort(int) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Sets the port the server is listening for http requests
setPrivileged(boolean) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Set the privileged flag for this web application.
setSecondsToWaitBeforePortBecomesAvailable(int) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Before starting the embedded Tomcat the programm tries to stop a previous process by sendig the shutdown command to the shutdown port.
setShutdownPort(int) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Specifies the port the server is listen for the shutdown command.
setSilent(boolean) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Set the silent flag of Tomcat.
setTempDirectory(File) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Sets the location of the temporary directory.
setTempDirectoryName(String) - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
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.
start() - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Starts the embedded Tomcat and do not wait for incoming requests.
startAndWait() - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Starts the embedded Tomcat and waits for incoming requests.
startServer() - Static method in class ch.ralscha.embeddedtc.TomcatTest
Starts an embedded tomcat on port 9998.
stop() - Method in class ch.ralscha.embeddedtc.EmbeddedTomcat
Stops the embedded tomcat.
stopServer() - Static method in class ch.ralscha.embeddedtc.TomcatTest
Stops the Tomcat after running all the tests in the test class

T

TargetClassesContext - Class in ch.ralscha.embeddedtc
Special FileDirContext that mapps /WEB-INF/classes to ./target/classes
TargetClassesContext() - Constructor for class ch.ralscha.embeddedtc.TargetClassesContext
 
TomcatTest - Class in ch.ralscha.embeddedtc
Convenient JUnit test class that starts a Tomcat on port 9998 before the test and stops it afterwards.
TomcatTest() - Constructor for class ch.ralscha.embeddedtc.TomcatTest
 
A C D E G M R S T 

Copyright © 2012. All Rights Reserved.