public class ValidUrlRule extends Rule
Rule.ApplyURI_handling, _terminating| Constructor and Description |
|---|
ValidUrlRule() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isValidChar(int codepoint) |
java.lang.String |
matchAndApply(java.lang.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(java.lang.String code)
Sets the response status code.
|
void |
setReason(java.lang.String reason)
Sets the reason for the response status code.
|
java.lang.String |
toString()
Returns the handling and terminating flag values.
|
isHandling, isTerminating, setHandling, setTerminatingpublic void setCode(java.lang.String code)
code - response codepublic void setReason(java.lang.String reason)
reason - public java.lang.String matchAndApply(java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
RulematchAndApply in class Ruletarget - The target of the requestjava.io.IOException - TODOprotected boolean isValidChar(int codepoint)
Copyright © 2013 FuseSource, Corp.. All Rights Reserved.