public class CookiePatternRule extends PatternRule
Cookie
Rule.ApplyURI
_pattern
_handling, _terminating
Constructor | Description |
---|---|
CookiePatternRule() |
|
CookiePatternRule(java.lang.String pattern,
java.lang.String name,
java.lang.String value) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
apply(java.lang.String target,
HttpServletRequest request,
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPattern, matchAndApply, setPattern
isHandling, isTerminating, setHandling, setTerminating
public 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, HttpServletRequest request, HttpServletResponse response) throws java.io.IOException
PatternRule
apply
in class PatternRule
target
- 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 PatternRule
Copyright © 1995–2018 Webtide. All rights reserved.