public final class Tomcat5xEmbedded.Engine extends Object
org.apache.catalina.Engine
Constructor and Description |
---|
Tomcat5xEmbedded.Engine(Object core)
Wraps an engine object.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(Tomcat5xEmbedded.Host host)
Adds a new
Tomcat5xEmbedded.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 the
ClassLoader that this engine will delegate to. |
public Tomcat5xEmbedded.Engine(Object core)
core
- Must be non-null.public void setName(String name)
name
- non-nullpublic void setBaseDir(String baseDir)
baseDir
- The directory name.public void addChild(Tomcat5xEmbedded.Host host)
Tomcat5xEmbedded.Host
to the engine.host
- must be non-null.public void setDefaultHost(String name)
name
- host name.public void setParentClassLoader(ClassLoader cl)
ClassLoader
that this engine will delegate to.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-2013 Codehaus. All Rights Reserved.