A C D E L M S T U 

A

addContextEnvironment(ContextEnvironment) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Adds a ContextEnvironment object to embedded Tomcat.
addContextEnvironment(String, String, String) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Convenient method for adding a context environment to the embedded Tomcat.
addContextEnvironmentAndResourceFromFile(File) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
addContextEnvironmentAndResourceFromFile(String) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
addContextEnvironmentString(String, String) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Convenient method for adding a context environment with type java.lang.String to the embedded Tomcat.
addContextInitializationParameter(String, String) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
 
addContextResource(ContextResource) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Adds a ContextResource object to the list of resources in the embedded Tomcat.
addDefaultListeners() - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Installs the default listeners AprLifecycleListener, JasperListener, JreMemoryLeakPreventionListener, GlobalResourcesLifecycleListener and ThreadLocalLeakPreventionListener during startup.

C

ch.rasc.embeddedtc - package ch.rasc.embeddedtc
 
create() - Static method in class ch.rasc.embeddedtc.EmbeddedTomcat
Convenient method to create a embedded Tomcat that listens on port 8080 and with a context path of ""

D

doListBindings(String) - Method in class ch.rasc.embeddedtc.TargetClassesContext
 
dontAddShutdownHook() - Method in class ch.rasc.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.rasc.embeddedtc
Helper class to simplify setting up a Embedded Tomcat in a IDE and with a Maven web project.
EmbeddedTomcat() - Constructor for class ch.rasc.embeddedtc.EmbeddedTomcat
Creates an embedded Tomcat with context path "" and port 8080.
EmbeddedTomcat(int) - Constructor for class ch.rasc.embeddedtc.EmbeddedTomcat
Creates an embedded Tomcat with context path "" and specified port.
EmbeddedTomcat(String) - Constructor for class ch.rasc.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.rasc.embeddedtc.EmbeddedTomcat
Creates an embedded Tomcat with specified context path and specified port.
enableNaming() - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Enables JNDI naming which is disabled by default.

L

ListContextsServlet - Class in ch.rasc.embeddedtc
 
ListContextsServlet(Context) - Constructor for class ch.rasc.embeddedtc.ListContextsServlet
 

M

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

S

service(HttpServletRequest, HttpServletResponse) - Method in class ch.rasc.embeddedtc.ListContextsServlet
 
setContextDirectory(String) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Sets the context directory.
setContextFile(URL) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Sets the location of the context file that configures this web application
setContextFile(String) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Sets the location of the context file that configures this web application
setContextPath(String) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Sets the contextPath for the webapplication
setPort(int) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Sets the port the server is listening for http requests
setPrivileged(boolean) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Set the privileged flag for this web application.
setSecondsToWaitBeforePortBecomesAvailable(int) - Method in class ch.rasc.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.rasc.embeddedtc.EmbeddedTomcat
Specifies the port the server is listen for the shutdown command.
setSilent(boolean) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Set the silent flag of Tomcat.
setTempDirectory(File) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Sets the location of the temporary directory.
setTempDirectoryName(String) - Method in class ch.rasc.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.
skipJarsContextConfig(String) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Additional JARs (over and above the default JARs set with EmbeddedTomcat.skipJarsDefaultJarScanner(String)) to skip when scanning for Servlet 3.0 pluggability features.
skipJarsDefaultJarScanner(String) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
List of JAR files that should not be scanned using the JarScanner functionality.
skipJarsTldConfig(String) - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Additional JARs (over and above the default JARs set with EmbeddedTomcat.skipJarsDefaultJarScanner(String)) to skip when scanning for TLDs.
start() - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Starts the embedded Tomcat and do not wait for incoming requests.
startAndWait() - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Starts the embedded Tomcat and waits for incoming requests.
startServer() - Static method in class ch.rasc.embeddedtc.TomcatTest
Starts an embedded tomcat on port 9998.
stop() - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
Stops the embedded tomcat.
stopServer() - Static method in class ch.rasc.embeddedtc.TomcatTest
Stops the Tomcat after running all the tests in the test class

T

TargetClassesContext - Class in ch.rasc.embeddedtc
Special FileDirContext that mapps /WEB-INF/classes to ./target/classes
TargetClassesContext() - Constructor for class ch.rasc.embeddedtc.TargetClassesContext
 
TomcatTest - Class in ch.rasc.embeddedtc
Convenient JUnit test class that starts a Tomcat on port 9998 before the test and stops it afterwards.
TomcatTest() - Constructor for class ch.rasc.embeddedtc.TomcatTest
 

U

useNio() - Method in class ch.rasc.embeddedtc.EmbeddedTomcat
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)
A C D E L M S T U 

Copyright © 2012-2013. All Rights Reserved.