org.tuckey.web.filters.urlrewrite
Class CatchElem

java.lang.Object
  extended by org.tuckey.web.filters.urlrewrite.CatchElem
All Implemented Interfaces:
Runnable

public class CatchElem
extends java.lang.Object
implements Runnable

An item that will allow exceptions during "run" invocation to be caught.


Constructor Summary
CatchElem()
           
 
Method Summary
 void addRun(Run run)
           
protected  RewrittenUrl execute(javax.servlet.http.HttpServletRequest hsRequest, javax.servlet.http.HttpServletResponse hsResponse, java.lang.Throwable originalThrowable)
           
 java.lang.String getClassStr()
           
 java.lang.String getError()
           
 java.util.List getRuns()
           
 boolean initialise(javax.servlet.ServletContext servletContext)
           
 boolean isInitialised()
           
 boolean isValid()
           
 boolean matches(java.lang.Throwable t)
           
 void setClassStr(java.lang.String classStr)
           
 void setError(java.lang.String error)
           
 void setError(java.lang.String error, java.lang.Throwable t)
           
static void setLoadClass(boolean loadClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatchElem

public CatchElem()
Method Detail

setLoadClass

public static void setLoadClass(boolean loadClass)

isValid

public boolean isValid()

isInitialised

public boolean isInitialised()

initialise

public boolean initialise(javax.servlet.ServletContext servletContext)
Returns:
true on success

matches

public boolean matches(java.lang.Throwable t)

execute

protected RewrittenUrl execute(javax.servlet.http.HttpServletRequest hsRequest,
                               javax.servlet.http.HttpServletResponse hsResponse,
                               java.lang.Throwable originalThrowable)
                        throws java.io.IOException,
                               javax.servlet.ServletException,
                               java.lang.reflect.InvocationTargetException
Throws:
java.io.IOException
javax.servlet.ServletException
java.lang.reflect.InvocationTargetException

getError

public java.lang.String getError()

setError

public void setError(java.lang.String error)

setError

public void setError(java.lang.String error,
                     java.lang.Throwable t)

getClassStr

public java.lang.String getClassStr()

setClassStr

public void setClassStr(java.lang.String classStr)

addRun

public void addRun(Run run)
Specified by:
addRun in interface Runnable

getRuns

public java.util.List getRuns()