org.codehaus.cargo.container.tomcat.internal
Class Tomcat5xEmbedded.Engine

java.lang.Object
  extended by org.codehaus.cargo.container.tomcat.internal.Tomcat5xEmbedded.Engine
Enclosing class:
Tomcat5xEmbedded

public final class Tomcat5xEmbedded.Engine
extends java.lang.Object

See Also:
org.apache.catalina.Engine

Constructor Summary
Tomcat5xEmbedded.Engine(java.lang.Object core)
          Wraps an engine object.
 
Method Summary
 void addChild(Tomcat5xEmbedded.Host host)
          Adds a new Tomcat5xEmbedded.Host to the engine.
 void setBaseDir(java.lang.String baseDir)
          Sets the directory that Tomcat will use as a workspace.
 void setDefaultHost(java.lang.String name)
          Don't know what it really does.
 void setName(java.lang.String name)
          Assigns a name to engine.
 void setParentClassLoader(java.lang.ClassLoader cl)
          Sets the ClassLoader that this engine will delegate to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tomcat5xEmbedded.Engine

public Tomcat5xEmbedded.Engine(java.lang.Object core)
Wraps an engine object.

Parameters:
core - Must be non-null.
Method Detail

setName

public void setName(java.lang.String name)
Assigns a name to engine.

Parameters:
name - non-null

setBaseDir

public void setBaseDir(java.lang.String baseDir)
Sets the directory that Tomcat will use as a workspace.

Parameters:
baseDir - The directory name.

addChild

public void addChild(Tomcat5xEmbedded.Host host)
Adds a new Tomcat5xEmbedded.Host to the engine.

Parameters:
host - must be non-null.

setDefaultHost

public void setDefaultHost(java.lang.String name)
Don't know what it really does.

Parameters:
name - host name.

setParentClassLoader

public void setParentClassLoader(java.lang.ClassLoader cl)
Sets the ClassLoader that this engine will delegate to.

Parameters:
cl - This needs to be set to ClassLoader that can see classes that implement Tomcat, or else you'll get errors like "Servlet jsp is not available" (because the system failed to load JspServlet class.)


Copyright © 2004-2010 Codehaus. All Rights Reserved.