net.sf.tm.tomcat
Class TomcatContextManager

java.lang.Object
  extended bynet.sf.tm.tomcat.TomcatContextManager
All Implemented Interfaces:
IContextManager

public class TomcatContextManager
extends Object
implements IContextManager

Implementation of a IContextManager using the Tomcat server manager application.

Version:
$Id: TomcatContextManager.java,v 1.6 2004/03/28 16:23:36 apataki Exp $
Author:
Andreas Pataki

Constructor Summary
TomcatContextManager(TomcatServer server)
          Default constructor
 
Method Summary
 List getAll()
          Returns a list of all available context's.
 void reload(String context)
          Reloads a context by it's name.
 void start(String context)
          Starts a context by it's name.
 void stop(String context)
          Stops a context by it's name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TomcatContextManager

public TomcatContextManager(TomcatServer server)
Default constructor

Method Detail

start

public void start(String context)
           throws ContextManagerException
Description copied from interface: IContextManager
Starts a context by it's name. The context must be stoped.

Specified by:
start in interface IContextManager
Parameters:
context - Name of the context which should be started
Throws:
ContextManagerException - The context couldn't be started. Check Stacktrace for reason.
See Also:
IContextManager.start(java.lang.String)

stop

public void stop(String context)
          throws ContextManagerException
Description copied from interface: IContextManager
Stops a context by it's name. The context must be started.

Specified by:
stop in interface IContextManager
Parameters:
context - The name of the context to be stopped.
Throws:
ContextManagerException - The context couldn't be stoped. Check Stacktrace for reason.
See Also:
IContextManager.stop(java.lang.String)

reload

public void reload(String context)
            throws ContextManagerException
Description copied from interface: IContextManager
Reloads a context by it's name. The context must be started.

Specified by:
reload in interface IContextManager
Parameters:
context - The name of the context to be reloaded.
Throws:
ContextManagerException - The context couldn't be reloaded. Check Stacktrace for reason.
See Also:
IContextManager.reload(String)

getAll

public List getAll()
            throws ContextManagerException
Description copied from interface: IContextManager
Returns a list of all available context's.

Specified by:
getAll in interface IContextManager
Returns:
List of WebContext objects
Throws:
ContextManagerException - The context list couldn't be retrived. Check Stacktrace for reason.
See Also:
IContextManager.getAll()


Copyright © 2003-2004 Andreas Pataki. All Rights Reserved.