public class CookiePatternRule extends PatternRule
Cookie
Rule.ApplyURI
_pattern
_handling, _terminating
Constructor and Description |
---|
CookiePatternRule() |
Modifier and Type | Method and Description |
---|---|
String |
apply(String target,
HttpServletRequest request,
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, setPattern
isHandling, isTerminating, setHandling, setTerminating
public 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, 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.