Class TomcatEmbedded.Engine
- java.lang.Object
-
- org.codehaus.cargo.container.tomcat.internal.TomcatEmbedded.Engine
-
- Enclosing class:
- TomcatEmbedded
public final class TomcatEmbedded.Engine extends Object
Copy oforg.apache.catalina.Engine
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(TomcatEmbedded.Host host)
Adds a newTomcatEmbedded.Host
to the engine.void
setBaseDir(String baseDir)
Sets the directory that Tomcat will use as a workspace.void
setDefaultHost(String name)
Don't know what it really does.void
setName(String name)
Assigns a name to engine.void
setParentClassLoader(ClassLoader cl)
Sets theClassLoader
that this engine will delegate to.void
setRealm(TomcatEmbedded.MemoryRealm realm)
Set the realm.
-
-
-
Method Detail
-
setName
public void setName(String name)
Assigns a name to engine.- Parameters:
name
- non-null
-
setBaseDir
public void setBaseDir(String baseDir)
Sets the directory that Tomcat will use as a workspace.- Parameters:
baseDir
- The directory name.
-
addChild
public void addChild(TomcatEmbedded.Host host)
Adds a newTomcatEmbedded.Host
to the engine.- Parameters:
host
- must be non-null.
-
setDefaultHost
public void setDefaultHost(String name)
Don't know what it really does.- Parameters:
name
- host name.
-
setParentClassLoader
public void setParentClassLoader(ClassLoader cl)
Sets theClassLoader
that this engine will delegate to.- Parameters:
cl
- This needs to be set toClassLoader
that can see classes that implement Tomcat, or else you'll get errors like "Servlet jsp is not available" (because the system failed to loadJspServlet
class.)
-
setRealm
public void setRealm(TomcatEmbedded.MemoryRealm realm)
Set the realm.- Parameters:
realm
- Realm to set.
-
-