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

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

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

See Also:
org.apache.catalina.Context

Field Summary
protected  java.lang.Object core
          Wrapped object to be accessed via reflection.
 
Constructor Summary
Tomcat5xEmbedded.Context(java.lang.Object context)
          Wraps org.apache.catalina.Context object.
 
Method Summary
 void addParameter(java.lang.String key, java.lang.String value)
          Add a new context initialization parameter.
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 reload()
          Reloads this web application.
 void setAvailable(boolean b)
          Makes web application available/unavailable.
 
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.Context

public Tomcat5xEmbedded.Context(java.lang.Object context)
Wraps org.apache.catalina.Context object.

Parameters:
context - object to be wrapped.
Method Detail

reload

public void reload()
Reloads this web application.


setAvailable

public void setAvailable(boolean b)
Makes web application available/unavailable.

Parameters:
b - true to make it available.

addParameter

public void addParameter(java.lang.String key,
                         java.lang.String value)
Add a new context initialization parameter.

Parameters:
key - non-null parameter name.
value - value

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.