public class CookiePatternRule extends PatternRule
CookieRule.ApplyURI_pattern_handling, _terminating| Constructor and Description |
|---|
CookiePatternRule() |
| Modifier and Type | Method and 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 |
setName(java.lang.String name)
Assigns the cookie name.
|
void |
setValue(java.lang.String value)
Assigns the cookie value.
|
java.lang.String |
toString()
Returns the cookie contents.
|
getPattern, matchAndApply, setPatternisHandling, isTerminating, setHandling, setTerminatingpublic void setName(java.lang.String name)
name - a String specifying the name of the cookie.public void setValue(java.lang.String value)
value - a String specifying the value of the cookieCookie.setValue(String)public 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 © 2013 FuseSource, Corp.. All Rights Reserved.