public class ResponsePatternRule extends PatternRule
Rule.ApplyURI
_pattern
_handling, _terminating
Constructor and Description |
---|
ResponsePatternRule() |
Modifier and Type | Method and Description |
---|---|
String |
apply(String target,
HttpServletRequest request,
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, setPattern
isHandling, isTerminating, setHandling, setTerminating
public void setCode(String code)
code
- response codepublic void setReason(String reason)
reason
- public String apply(String target, HttpServletRequest request, HttpServletResponse response) throws IOException
PatternRule
apply
in class PatternRule
target
- field to attempt matchrequest
- request objectresponse
- response objectIOException
- exceptions dealing with operating on request or response objectspublic String toString()
toString
in class PatternRule
Copyright © 1995-2015 Webtide. All Rights Reserved.