net.sf.tm
Interface IContextManager

All Known Implementing Classes:
TomcatContextManager

public interface IContextManager

Interface for a Context Manager. The context manager provides all methods for managing context in a running web server.

Version:
$Id: IContextManager.java,v 1.1 2003/08/17 12:20:34 apataki Exp $
Author:
Andreas Pataki

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.
 

Method Detail

start

public void start(String context)
           throws ContextManagerException
Starts a context by it's name. The context must be stoped.

Parameters:
context - Name of the context which should be started
Throws:
ContextManagerException - The context couldn't be started. Check Stacktrace for reason.

stop

public void stop(String context)
          throws ContextManagerException
Stops a context by it's name. The context must be started.

Parameters:
context - The name of the context to be stopped.
Throws:
ContextManagerException - The context couldn't be stoped. Check Stacktrace for reason.

reload

public void reload(String context)
            throws ContextManagerException
Reloads a context by it's name. The context must be started.

Parameters:
context - The name of the context to be reloaded.
Throws:
ContextManagerException - The context couldn't be reloaded. Check Stacktrace for reason.

getAll

public List getAll()
            throws ContextManagerException
Returns a list of all available context's.

Returns:
List of WebContext objects
Throws:
ContextManagerException - The context list couldn't be retrived. Check Stacktrace for reason.


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