public final class Tomcat5xEmbedded.Embedded extends Object
org.apache.catalina.startup.Embedded| Constructor and Description |
|---|
Tomcat5xEmbedded.Embedded()
Creates a new
Tomcat5xEmbedded.Embedded Tomcat. |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnector(Tomcat5xEmbedded.Connector connector)
Adds a connector.
|
void |
addEngine(Tomcat5xEmbedded.Engine e)
Adds a new
Tomcat5xEmbedded.Engine. |
Tomcat5xEmbedded.Connector |
createConnector(InetAddress inetAddress,
int port,
boolean secure)
Creates a new connector.
|
Tomcat5xEmbedded.Context |
createContext(String path,
String docBase)
Creates an web application for deployment.
|
Tomcat5xEmbedded.Engine |
createEngine()
Creates a new engine.
|
Tomcat5xEmbedded.Host |
createHost(String name,
File appBase)
Creates a new virtual host mapping.
|
void |
setCatalinaBase(File dir)
Sets the Tomcat installation where catalina jars are loaded from.
|
void |
setCatalinaHome(File dir)
Sets the directory where Tomcat stores data file for the
current running instance.
|
void |
setRealm(Tomcat5xEmbedded.MemoryRealm realm)
Associates a realm to Tomcat.
|
void |
start()
Starts the container.
|
void |
stop()
Stops the container.
|
public Tomcat5xEmbedded.Embedded()
Tomcat5xEmbedded.Embedded Tomcat.public Tomcat5xEmbedded.Engine createEngine()
public Tomcat5xEmbedded.Host createHost(String name, File appBase)
name - Host name.appBase - The "webapp" directory.public void start()
public void stop()
public void addEngine(Tomcat5xEmbedded.Engine e)
Tomcat5xEmbedded.Engine.e - must be non-null.public Tomcat5xEmbedded.Connector createConnector(InetAddress inetAddress, int port, boolean secure)
inetAddress - non-null if you want to bind to specific interfacesport - TCP port number.secure - Not sure what this really is.public void addConnector(Tomcat5xEmbedded.Connector connector)
connector - must be non-null.public Tomcat5xEmbedded.Context createContext(String path, String docBase)
path - the context URLdocBase - the exploded war file image.public void setRealm(Tomcat5xEmbedded.MemoryRealm realm)
realm - realm object.public void setCatalinaBase(File dir)
dir - the home directory.public void setCatalinaHome(File dir)
dir - the home directory.Copyright © 2004-2013 Codehaus. All Rights Reserved.