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

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

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

See Also:
org.apache.catalina.startup.Embedded

Constructor Summary
Tomcat5xEmbedded.Embedded()
          Creates a new Tomcat5xEmbedded.Embedded Tomcat.
 
Method Summary
 void addConnector(Tomcat5xEmbedded.Connector connector)
          Adds a connector.
 void addEngine(Tomcat5xEmbedded.Engine e)
          Adds a new Tomcat5xEmbedded.Engine.
 Tomcat5xEmbedded.Connector createConnector(java.net.InetAddress inetAddress, int port, boolean secure)
          Creates a new connector.
 Tomcat5xEmbedded.Context createContext(java.lang.String path, java.lang.String docBase)
          Creates an web application for deployment.
 Tomcat5xEmbedded.Engine createEngine()
          Creates a new engine.
 Tomcat5xEmbedded.Host createHost(java.lang.String name, java.io.File appBase)
          Creates a new virtual host mapping.
 void setCatalinaBase(java.io.File dir)
          Sets the Tomcat installation where catalina jars are loaded from.
 void setCatalinaHome(java.io.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tomcat5xEmbedded.Embedded

public Tomcat5xEmbedded.Embedded()
Creates a new Tomcat5xEmbedded.Embedded Tomcat.

Method Detail

createEngine

public Tomcat5xEmbedded.Engine createEngine()
Creates a new engine.

Returns:
non-null

createHost

public Tomcat5xEmbedded.Host createHost(java.lang.String name,
                                        java.io.File appBase)
Creates a new virtual host mapping.

Parameters:
name - Host name.
appBase - The "webapp" directory.
Returns:
Always non-null.

start

public void start()
Starts the container.


stop

public void stop()
Stops the container.


addEngine

public void addEngine(Tomcat5xEmbedded.Engine e)
Adds a new Tomcat5xEmbedded.Engine.

Parameters:
e - must be non-null.

createConnector

public Tomcat5xEmbedded.Connector createConnector(java.net.InetAddress inetAddress,
                                                  int port,
                                                  boolean secure)
Creates a new connector.

Parameters:
inetAddress - non-null if you want to bind to specific interfaces
port - TCP port number.
secure - Not sure what this really is.
Returns:
Always non-null.

addConnector

public void addConnector(Tomcat5xEmbedded.Connector connector)
Adds a connector.

Parameters:
connector - must be non-null.

createContext

public Tomcat5xEmbedded.Context createContext(java.lang.String path,
                                              java.lang.String docBase)
Creates an web application for deployment.

Parameters:
path - the context URL
docBase - the exploded war file image.
Returns:
Always non-null

setRealm

public void setRealm(Tomcat5xEmbedded.MemoryRealm realm)
Associates a realm to Tomcat.

Parameters:
realm - realm object.

setCatalinaBase

public void setCatalinaBase(java.io.File dir)
Sets the Tomcat installation where catalina jars are loaded from.

Parameters:
dir - the home directory.

setCatalinaHome

public void setCatalinaHome(java.io.File dir)
Sets the directory where Tomcat stores data file for the current running instance.

Parameters:
dir - the home directory.


Copyright © 2004-2010 Codehaus. All Rights Reserved.