public class ResponsePatternRule extends PatternRule
Rule.ApplyURI_pattern_handling, _terminating| Constructor and Description |
|---|
ResponsePatternRule() |
| Modifier and Type | Method and Description |
|---|---|
String |
apply(String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Apply the rule to the request
|
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 code and reason string.
|
getPattern, matchAndApply, setPatternisHandling, isTerminating, setHandling, setTerminatingpublic void setCode(String code)
code - response codepublic void setReason(String reason)
reason - public String apply(String target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
PatternRuleapply in class PatternRuletarget - field to attempt matchrequest - request objectresponse - response objectIOException - exceptions dealing with operating on request or response objectspublic String toString()
toString in class PatternRuleCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.