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,
HttpServletRequest request,
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, setTerminating
public void setCode(String code)
code
- response codepublic void setReason(String reason)
reason
- public String matchAndApply(String target, HttpServletRequest request, HttpServletResponse response) throws IOException
Rule
matchAndApply
in class Rule
target
- The target of the requestIOException
protected boolean isValidChar(int codepoint)
Copyright © 1995-2015 Webtide. All Rights Reserved.