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 voidaddChild(TomcatEmbedded.Host host)Adds a newTomcatEmbedded.Hostto the engine.voidsetBaseDir(String baseDir)Sets the directory that Tomcat will use as a workspace.voidsetDefaultHost(String name)Don't know what it really does.voidsetName(String name)Assigns a name to engine.voidsetParentClassLoader(ClassLoader cl)Sets theClassLoaderthat this engine will delegate to.voidsetRealm(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.Hostto 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 theClassLoaderthat this engine will delegate to.- Parameters:
cl- This needs to be set toClassLoaderthat can see classes that implement Tomcat, or else you'll get errors like "Servlet jsp is not available" (because the system failed to loadJspServletclass.)
-
setRealm
public void setRealm(TomcatEmbedded.MemoryRealm realm)
Set the realm.- Parameters:
realm- Realm to set.
-
-