| 构造器和说明 |
|---|
ClassRule() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy() |
java.lang.String |
getClassStr() |
java.lang.String |
getDisplayName() |
java.util.List |
getErrors()
List of strings for all errors.
|
int |
getId() |
java.lang.String |
getName() |
boolean |
initialise(javax.servlet.ServletContext context)
Will initialise the rule.
|
boolean |
isEnabled() |
boolean |
isFilter() |
boolean |
isLast() |
boolean |
isValid() |
RewrittenUrl |
matches(java.lang.String url,
javax.servlet.http.HttpServletRequest hsRequest,
javax.servlet.http.HttpServletResponse hsResponse) |
RewrittenUrl |
matches(java.lang.String url,
javax.servlet.http.HttpServletRequest hsRequest,
javax.servlet.http.HttpServletResponse hsResponse,
RuleChain chain)
Will run the rule against the uri and perform action required will return false is not matched
otherwise true.
|
void |
setClassStr(java.lang.String classStr) |
void |
setEnabled(boolean enabled) |
void |
setId(int i) |
void |
setLast(boolean last) |
void |
setMethodStr(java.lang.String methodStr) |
public RewrittenUrl matches(java.lang.String url, javax.servlet.http.HttpServletRequest hsRequest, javax.servlet.http.HttpServletResponse hsResponse, RuleChain chain) throws java.io.IOException, javax.servlet.ServletException
Rulepublic RewrittenUrl matches(java.lang.String url, javax.servlet.http.HttpServletRequest hsRequest, javax.servlet.http.HttpServletResponse hsResponse) throws javax.servlet.ServletException, java.io.IOException
public boolean initialise(javax.servlet.ServletContext context)
Ruleinitialise 在接口中 Rulecontext - ServletContextpublic java.lang.String getDisplayName()
getDisplayName 在接口中 Rulepublic void setLast(boolean last)
public void setClassStr(java.lang.String classStr)
public java.lang.String getClassStr()
public void setMethodStr(java.lang.String methodStr)
public boolean isEnabled()
public void setEnabled(boolean enabled)