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

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

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

See Also:
org.apache.catalina.Host

Field Summary
protected  java.lang.Object core
          Wrapped object to be accessed via reflection.
 
Constructor Summary
Tomcat5xEmbedded.Host(java.lang.Object core)
          Wraps a Host object.
 
Method Summary
 void addChild(Tomcat5xEmbedded.Context context)
          Deploys a web application.
 java.lang.String getName()
          Gets the name of thist host.
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 removeChild(Tomcat5xEmbedded.Context context)
          Removes a web application.
 void setAutoDeploy(boolean b)
          Supposed to enable auto-deployment of war file.
 
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.Host

public Tomcat5xEmbedded.Host(java.lang.Object core)
Wraps a Host object.

Parameters:
core - non-null.
Method Detail

setAutoDeploy

public void setAutoDeploy(boolean b)
Supposed to enable auto-deployment of war file.

Parameters:
b - true to enable.

getName

public java.lang.String getName()
Gets the name of thist host.

Returns:
host name.

addChild

public void addChild(Tomcat5xEmbedded.Context context)
Deploys a web application.

Parameters:
context - context to be deployed.

removeChild

public void removeChild(Tomcat5xEmbedded.Context context)
Removes a web application.

Parameters:
context - context to be removed.

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-2008 Codehaus. All Rights Reserved.