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, NetscapeDraftSpec, RFC2109Spec
@NotThreadSafe
public abstract class CookieSpecBase
- extends AbstractCookieSpec
Cookie management functions shared by all specification.
- Since:
- 4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CookieSpecBase
public CookieSpecBase()
getDefaultPath
protected static String getDefaultPath(CookieOrigin origin)
getDefaultDomain
protected static String getDefaultDomain(CookieOrigin origin)
parse
protected List<Cookie> parse(HeaderElement[] elems,
CookieOrigin origin)
throws MalformedCookieException
- Throws:
MalformedCookieException
validate
public void validate(Cookie cookie,
CookieOrigin origin)
throws MalformedCookieException
- 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
public boolean match(Cookie cookie,
CookieOrigin origin)
- 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.
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.