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

java.lang.Object
  extended byorg.codehaus.cargo.container.tomcat.internal.Tomcat5xEmbedded.Wrapper
      extended byorg.codehaus.cargo.container.tomcat.internal.Tomcat5xEmbedded.Embedded
Enclosing class:
Tomcat5xEmbedded

public final class Tomcat5xEmbedded.Embedded
extends org.codehaus.cargo.container.tomcat.internal.Tomcat5xEmbedded.Wrapper

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

Field Summary
protected  java.lang.Object core
          Wrapped object to be accessed via reflection.
 
Constructor Summary
Tomcat5xEmbedded.Embedded()
          Creates a new Embedded Tomcat.
 
Method Summary
 void addConnector(Tomcat5xEmbedded.Connector connector)
          Adds a connector.
 void addEngine(Tomcat5xEmbedded.Engine e)
          Adds a new 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.
protected  java.lang.Object invoke(java.lang.reflect.Method method)
          Invokes a method on the wrapped object.
protected  java.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object arg1)
          Invokes a method on the wrapped object.
protected  java.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object[] args)
          Invokes a method on the wrapped object.
protected  java.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object arg1, java.lang.Object arg2)
          Invokes a method on the wrapped object.
protected  java.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
          Invokes a method on the wrapped object.
 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
 

Field Detail

core

protected final java.lang.Object core
Wrapped object to be accessed via reflection.

Constructor Detail

Tomcat5xEmbedded.Embedded

public Tomcat5xEmbedded.Embedded()
Creates a new 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 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.

invoke

protected java.lang.Object invoke(java.lang.reflect.Method method)
Invokes a method on the wrapped object.

Parameters:
method - the method to invoke
Returns:
the value from the invocation.

invoke

protected java.lang.Object invoke(java.lang.reflect.Method method,
                                  java.lang.Object arg1)
Invokes a method on the wrapped object.

Parameters:
method - the method to invoke
arg1 - the 1st argument for invocations.
Returns:
the value from the invocation.

invoke

protected java.lang.Object invoke(java.lang.reflect.Method method,
                                  java.lang.Object arg1,
                                  java.lang.Object arg2)
Invokes a method on the wrapped object.

Parameters:
method - the method to invoke
arg1 - the 1st argument for invocations.
arg2 - the 2nd argument for invocations.
Returns:
the value from the invocation.

invoke

protected java.lang.Object invoke(java.lang.reflect.Method method,
                                  java.lang.Object arg1,
                                  java.lang.Object arg2,
                                  java.lang.Object arg3)
Invokes a method on the wrapped object.

Parameters:
method - the method to invoke
arg1 - the 1st argument for invocations.
arg2 - the 2nd argument for invocations.
arg3 - the 3rd argument for invocations.
Returns:
the value from the invocation.

invoke

protected java.lang.Object invoke(java.lang.reflect.Method method,
                                  java.lang.Object[] args)
Invokes a method on the wrapped object.

Parameters:
method - the method to invoke
args - the arguments for invocations.
Returns:
the value from the invocation.


Copyright © 2004-2007 Codehaus. All Rights Reserved.