public class ResponsePatternRule extends PatternRule
Rule.ApplyURI_pattern_handling, _terminating| Constructor | Description |
|---|---|
ResponsePatternRule() |
|
ResponsePatternRule(java.lang.String pattern,
java.lang.String code,
java.lang.String reason) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
apply(java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Apply the rule to the request
|
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 code and reason string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPattern, matchAndApply, setPatternisHandling, isTerminating, setHandling, setTerminatingpublic void setCode(java.lang.String code)
code - response codepublic void setReason(java.lang.String reason)
reason - the reasonpublic java.lang.String apply(java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
PatternRuleapply in class PatternRuletarget - field to attempt matchrequest - request objectresponse - response objectjava.io.IOException - exceptions dealing with operating on request or response objectspublic java.lang.String toString()
toString in class PatternRuleCopyright © 1995–2018 Webtide. All rights reserved.