public class RedirectPatternRule extends PatternRule
Rule.ApplyURI
_pattern
_handling, _terminating
Constructor and Description |
---|
RedirectPatternRule() |
Modifier and Type | Method and Description |
---|---|
String |
apply(String target,
HttpServletRequest request,
HttpServletResponse response)
Apply the rule to the request
|
void |
setLocation(String value)
Sets the redirect location.
|
String |
toString()
Returns the redirect location.
|
getPattern, matchAndApply, setPattern
isHandling, isTerminating, setHandling, setTerminating
public void setLocation(String value)
value
- the location to redirect.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.