vinayc 2002/06/27 22:02:42
Added: sevak/src/java/org/apache/avalon/apps/sevak
SevakException.java Sevak.java
Log:
Sevak - Catalina Wrapper
Revision Changes Path
1.1
jakarta-avalon-apps/sevak/src/java/org/apache/avalon/apps/sevak/SevakException.java
Index: SevakException.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.avalon.apps.sevak;
import org.apache.avalon.framework.CascadingThrowable;
/**
* General Exception indicating the state of the Embedded Web Server i.e.
Catalina
*
* @author <a href="mailto:[EMAIL PROTECTED]">Vinay Chandran</a>
*/
public class SevakException extends Exception implements CascadingThrowable
{
/**
* The Throwable that caused this exception to be thrown.
*/
private final Throwable m_throwable;
/**
* Construct a new <code>SevakException</code> instance.
*
* @param message The detail message for this exception.
*/
public SevakException(final String message)
{
this(message, null);
}
/**
* Construct a new <code>SevakException</code> instance.
*
* @param message The detail message for this exception.
* @param throwable the root cause of the exception
*/
public SevakException(final String message, final Throwable throwable)
{
super(message);
m_throwable = throwable;
}
/**
* Retrieve root cause of the exception.
*
* @return the root cause
*/
public final Throwable getCause()
{
return m_throwable;
}
}
1.1
jakarta-avalon-apps/sevak/src/java/org/apache/avalon/apps/sevak/Sevak.java
Index: Sevak.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*/
package org.apache.avalon.apps.sevak;
import java.io.File;
/**
* Web Server Interface (Catalina is the target implementation)
* @author Vinay Chandrasekharan<[EMAIL PROTECTED]>
* @version 1.0
*/
public interface Sevak
{
/** Role of the Sevak Service*/
String ROLE = Sevak.class.getName();
/**
* Deploy the given Web Application
* @param context Context for the the webapp
* @param pathToWebAppFolder path can be a war-archive or exploded
directory
* @throws SevakException Thrown when context already exists
*/
void deploy(String context, File pathToWebAppFolder) throws
SevakException;
/**
* Undeploy the given WebApp
* @param context Context for the the webapp
* @throws SevakException Thrown if context does NOT exist
*/
void undeploy(String context) throws SevakException;
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>