public class Run
extends java.lang.Object
构造器和说明 |
---|
Run() |
限定符和类型 | 方法和说明 |
---|---|
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)
已过时。
see #execute(HttpServletRequest,HttpServletResponse,Object[],FilterChain)
|
RewriteMatch |
execute(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
java.lang.Object[] params)
已过时。
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) |
public boolean initialise(javax.servlet.ServletContext context)
context
- ServletContextinitialise
public boolean initialise(javax.servlet.ServletContext context, java.lang.Class extraParam)
context
- ServletContextextraParam
- Classpublic 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
httpServletRequest
- HttpServletRequesthttpServletResponse
- HttpServletResponsejava.io.IOException
- IOExceptionjavax.servlet.ServletException
- ServletExceptionjava.lang.reflect.InvocationTargetException
- InvocationTargetExceptionpublic 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
- HttpServletRequesthttpServletResponse
- HttpServletResponsethrowable
- Throwablejava.io.IOException
- IOExceptionjavax.servlet.ServletException
- ServletExceptionjava.lang.reflect.InvocationTargetException
- InvocationTargetExceptionpublic 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
httpServletRequest
- HttpServletRequesthttpServletResponse
- HttpServletResponseparams
- Object[]java.io.IOException
- IOExceptionjavax.servlet.ServletException
- ServletExceptionjava.lang.reflect.InvocationTargetException
- InvocationTargetExceptionpublic 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)