|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tuckey.web.filters.urlrewrite.Run
public class Run
Defines a run element, the ability to run a methodStr (eg, xx(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse))
Constructor Summary | |
---|---|
Run()
|
Method Summary | |
---|---|
void |
addInitParam(java.lang.String name,
java.lang.String value)
|
void |
destroy()
Run the underlying destroy methodStr on the run classStr. |
RewriteMatch |
execute(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Deprecated. see #execute(HttpServletRequest,HttpServletResponse,Object[],FilterChain) |
RewriteMatch |
execute(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
java.lang.Object[] params)
Deprecated. use execute(HttpServletRequest, HttpServletResponse, Object[], FilterChain) |
RewriteMatch |
execute(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
java.lang.Object[] params,
javax.servlet.FilterChain chain)
|
RewriteMatch |
execute(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
StringMatchingMatcher matcher,
ConditionMatch conditionMatch,
javax.servlet.FilterChain chain)
|
RewriteMatch |
execute(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
java.lang.Throwable throwable)
Will invoke the instance created in initialise. |
java.lang.String |
getClassStr()
The name of the classStr that will be run for each rule match. |
java.lang.String |
getDisplayName()
|
java.lang.String |
getError()
|
int |
getId()
|
java.lang.String |
getInitParam(java.lang.String paramName)
|
java.lang.String |
getMethodSignature()
The name of the method signature ie, setDate(java.util.Date, int). |
java.lang.String |
getMethodStr()
The name of the methodStr that will be run for each rule match. |
java.lang.Object |
getRunClassInstance()
Gets a handle on the instance of the class run is running. |
boolean |
initialise(javax.servlet.ServletContext context)
|
boolean |
initialise(javax.servlet.ServletContext context,
java.lang.Class extraParam)
Initialise the Run, this will check specified classStr, constructor and methodStr exist. |
boolean |
isFilter()
|
boolean |
isInitialised()
|
boolean |
isNewEachTime()
|
boolean |
isValid()
|
void |
setClassStr(java.lang.String classStr)
|
void |
setError(java.lang.String error)
|
void |
setError(java.lang.String error,
java.lang.Throwable t)
|
void |
setId(int id)
|
void |
setJsonHandler(boolean jsonHandler)
|
static void |
setLoadClass(boolean loadClass)
|
void |
setMethodStr(java.lang.String methodStr)
|
void |
setNewEachTime(boolean newEachTime)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Run()
Method Detail |
---|
public boolean initialise(javax.servlet.ServletContext context)
initialise
public boolean initialise(javax.servlet.ServletContext context, java.lang.Class extraParam)
public void destroy()
public RewriteMatch execute(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws java.io.IOException, javax.servlet.ServletException, java.lang.reflect.InvocationTargetException
java.io.IOException
javax.servlet.ServletException
java.lang.reflect.InvocationTargetException
public RewriteMatch execute(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, StringMatchingMatcher matcher, ConditionMatch conditionMatch, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException, java.lang.reflect.InvocationTargetException
java.io.IOException
javax.servlet.ServletException
java.lang.reflect.InvocationTargetException
public RewriteMatch execute(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, java.lang.Throwable throwable) throws java.io.IOException, javax.servlet.ServletException, java.lang.reflect.InvocationTargetException
httpServletRequest
- httpServletResponse
-
java.io.IOException
javax.servlet.ServletException
java.lang.reflect.InvocationTargetException
public RewriteMatch execute(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, java.lang.Object[] params) throws java.io.IOException, javax.servlet.ServletException, java.lang.reflect.InvocationTargetException
java.io.IOException
javax.servlet.ServletException
java.lang.reflect.InvocationTargetException
public RewriteMatch execute(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, java.lang.Object[] params, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException, java.lang.reflect.InvocationTargetException
java.io.IOException
javax.servlet.ServletException
java.lang.reflect.InvocationTargetException
public java.lang.String getError()
public void setId(int id)
public int getId()
public boolean isValid()
public boolean isInitialised()
public java.lang.String getClassStr()
public java.lang.String getMethodStr()
public java.lang.String getMethodSignature()
public boolean isNewEachTime()
public void setNewEachTime(boolean newEachTime)
public java.lang.Object getRunClassInstance()
public void addInitParam(java.lang.String name, java.lang.String value)
public java.lang.String getInitParam(java.lang.String paramName)
public void setClassStr(java.lang.String classStr)
public void setMethodStr(java.lang.String methodStr)
public static void setLoadClass(boolean loadClass)
public void setError(java.lang.String error, java.lang.Throwable t)
public void setError(java.lang.String error)
public java.lang.String getDisplayName()
public boolean isFilter()
public void setJsonHandler(boolean jsonHandler)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |