public class CookiePatternRule extends PatternRule
CookieRule.ApplyURI_pattern_handling, _terminating| Constructor and Description |
|---|
CookiePatternRule() |
| 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 |
setName(String name)
Assigns the cookie name.
|
void |
setValue(String value)
Assigns the cookie value.
|
String |
toString()
Returns the cookie contents.
|
getPattern, matchAndApply, setPatternisHandling, isTerminating, setHandling, setTerminatingpublic void setName(String name)
name - a String specifying the name of the cookie.public void setValue(String value)
value - a String specifying the value of the cookieCookie.setValue(String)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.