org.tuckey.web.filters.urlrewrite
Class CatchElem
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CatchElem
public CatchElem()
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()