Package org.apache.http.impl.cookie
Class CookieSpecBase
java.lang.Object
org.apache.http.impl.cookie.AbstractCookieSpec
org.apache.http.impl.cookie.CookieSpecBase
- All Implemented Interfaces:
CookieSpec
- Direct Known Subclasses:
BrowserCompatSpec
,IgnoreSpec
,NetscapeDraftSpec
,RFC2109Spec
Cookie management functions shared by all specification.
- Since:
- 4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
match
(Cookie cookie, CookieOrigin origin) Determines if a Cookie matches the target location.void
validate
(Cookie cookie, CookieOrigin origin) Validate the cookie according to validation rules defined by the cookie specification.Methods inherited from class org.apache.http.impl.cookie.AbstractCookieSpec
registerAttribHandler
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.http.cookie.CookieSpec
formatCookies, getVersion, getVersionHeader, parse
-
Constructor Details
-
CookieSpecBase
public CookieSpecBase()
-
-
Method Details
-
validate
Description copied from interface:CookieSpec
Validate the cookie according to validation rules defined by the cookie specification.- Parameters:
cookie
- the Cookie to validateorigin
- details of the cookie origin- Throws:
MalformedCookieException
- if the cookie is invalid
-
match
Description copied from interface:CookieSpec
Determines if a Cookie matches the target location.- Parameters:
cookie
- the Cookie to be matchedorigin
- the target to test against- Returns:
true
if the cookie should be submitted with a request with given attributes,false
otherwise.
-