public class ValidUrlRule extends Rule
Rule.ApplyURI_handling, _terminating| Constructor and Description |
|---|
ValidUrlRule() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isValidChar(int codepoint) |
String |
matchAndApply(String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method calls tests the rule against the request/response pair and if the Rule
applies, then the rule's action is triggered.
|
void |
setCode(String code)
Sets the response status code.
|
void |
setReason(String reason)
Sets the reason for the response status code.
|
String |
toString()
Returns the handling and terminating flag values.
|
isHandling, isTerminating, setHandling, setTerminatingpublic void setCode(String code)
code - response codepublic void setReason(String reason)
reason - public String matchAndApply(String target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
RulematchAndApply in class Ruletarget - The target of the requestIOException - TODOprotected boolean isValidChar(int codepoint)
Copyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.