Package | Description |
---|---|
org.apache.http.client |
Client HTTP communication APIs.
|
org.apache.http.cookie |
Client HTTP state management APIs.
|
org.apache.http.impl.client |
Default HTTP client implementation.
|
org.apache.http.impl.cookie |
Default implementations of standard and common HTTP state
management policies.
|
Modifier and Type | Method and Description |
---|---|
List<Cookie> |
CookieStore.getCookies()
Returns all cookies contained in this store.
|
Modifier and Type | Method and Description |
---|---|
void |
CookieStore.addCookie(Cookie cookie)
Adds an
Cookie , replacing any existing equivalent cookies. |
Modifier and Type | Interface and Description |
---|---|
interface |
ClientCookie
ClientCookie extends the standard
Cookie interface with
additional client specific functionality such ability to retrieve
original cookie attributes exactly as they were specified by the
origin server. |
interface |
SetCookie
This interface represents a
Set-Cookie response header sent by the
origin server to the HTTP agent in order to maintain a conversational state. |
interface |
SetCookie2
This interface represents a
Set-Cookie2 response header sent by the
origin server to the HTTP agent in order to maintain a conversational state. |
Modifier and Type | Method and Description |
---|---|
List<Cookie> |
CookieSpec.parse(org.apache.http.Header header,
CookieOrigin origin)
Parse the
"Set-Cookie" Header into an array of Cookies. |
Modifier and Type | Method and Description |
---|---|
int |
CookiePriorityComparator.compare(Cookie c1,
Cookie c2) |
int |
CookiePathComparator.compare(Cookie c1,
Cookie c2) |
int |
CookieIdentityComparator.compare(Cookie c1,
Cookie c2) |
boolean |
CookieAttributeHandler.match(Cookie cookie,
CookieOrigin origin)
Matches the given value (property of the destination host where request is being
submitted) with the corresponding cookie attribute.
|
boolean |
CookieSpec.match(Cookie cookie,
CookieOrigin origin)
Determines if a Cookie matches the target location.
|
void |
CookieAttributeHandler.validate(Cookie cookie,
CookieOrigin origin)
Peforms cookie validation for the given attribute value.
|
void |
CookieSpec.validate(Cookie cookie,
CookieOrigin origin)
Validate the cookie according to validation rules defined by the
cookie specification.
|
Modifier and Type | Method and Description |
---|---|
List<org.apache.http.Header> |
CookieSpec.formatCookies(List<Cookie> cookies)
Create
"Cookie" headers for an array of Cookies. |
Modifier and Type | Method and Description |
---|---|
List<Cookie> |
BasicCookieStore.getCookies()
Returns an immutable array of
cookies that this HTTP
state currently contains. |
Modifier and Type | Method and Description |
---|---|
void |
BasicCookieStore.addCookie(Cookie cookie)
Adds an
HTTP cookie , replacing any existing equivalent cookies. |
void |
BasicCookieStore.addCookies(Cookie[] cookies)
Adds an array of
HTTP cookies . |
Modifier and Type | Class and Description |
---|---|
class |
BasicClientCookie
Default implementation of
SetCookie . |
class |
BasicClientCookie2
Default implementation of
SetCookie2 . |
Modifier and Type | Method and Description |
---|---|
List<Cookie> |
IgnoreSpec.parse(org.apache.http.Header header,
CookieOrigin origin) |
List<Cookie> |
DefaultCookieSpec.parse(org.apache.http.Header header,
CookieOrigin origin) |
List<Cookie> |
NetscapeDraftSpec.parse(org.apache.http.Header header,
CookieOrigin origin)
Parses the Set-Cookie value into an array of
Cookie s. |
List<Cookie> |
RFC2109Spec.parse(org.apache.http.Header header,
CookieOrigin origin) |
List<Cookie> |
BrowserCompatSpec.parse(org.apache.http.Header header,
CookieOrigin origin)
Deprecated.
|
List<Cookie> |
RFC2965Spec.parse(org.apache.http.Header header,
CookieOrigin origin) |
List<Cookie> |
RFC6265CookieSpec.parse(org.apache.http.Header header,
CookieOrigin origin) |
protected List<Cookie> |
RFC2965Spec.parse(org.apache.http.HeaderElement[] elems,
CookieOrigin origin) |
protected List<Cookie> |
CookieSpecBase.parse(org.apache.http.HeaderElement[] elems,
CookieOrigin origin) |
Modifier and Type | Method and Description |
---|---|
protected void |
RFC2109Spec.formatCookieAsVer(org.apache.http.util.CharArrayBuffer buffer,
Cookie cookie,
int version)
Return a string suitable for sending in a
"Cookie" header
as defined in RFC 2109 for backward compatibility with cookie version 0 |
protected void |
RFC2965Spec.formatCookieAsVer(org.apache.http.util.CharArrayBuffer buffer,
Cookie cookie,
int version)
Adds valid Port attribute value, e.g.
|
boolean |
BasicPathHandler.match(Cookie cookie,
CookieOrigin origin) |
boolean |
IgnoreSpec.match(Cookie cookie,
CookieOrigin origin) |
boolean |
DefaultCookieSpec.match(Cookie cookie,
CookieOrigin origin) |
boolean |
RFC2965DiscardAttributeHandler.match(Cookie cookie,
CookieOrigin origin) |
boolean |
RFC2965CommentUrlAttributeHandler.match(Cookie cookie,
CookieOrigin origin) |
boolean |
BasicDomainHandler.match(Cookie cookie,
CookieOrigin origin) |
boolean |
BasicSecureHandler.match(Cookie cookie,
CookieOrigin origin) |
boolean |
RFC2965DomainAttributeHandler.match(Cookie cookie,
CookieOrigin origin)
Match cookie domain attribute.
|
boolean |
AbstractCookieAttributeHandler.match(Cookie cookie,
CookieOrigin origin) |
boolean |
NetscapeDomainHandler.match(Cookie cookie,
CookieOrigin origin) |
boolean |
RFC2965VersionAttributeHandler.match(Cookie cookie,
CookieOrigin origin) |
boolean |
PublicSuffixDomainFilter.match(Cookie cookie,
CookieOrigin origin)
Never matches if the cookie's domain is from the blacklist.
|
boolean |
PublicSuffixFilter.match(Cookie cookie,
CookieOrigin origin)
Deprecated.
Never matches if the cookie's domain is from the blacklist.
|
boolean |
RFC2965Spec.match(Cookie cookie,
CookieOrigin origin) |
boolean |
CookieSpecBase.match(Cookie cookie,
CookieOrigin origin) |
boolean |
RFC2965PortAttributeHandler.match(Cookie cookie,
CookieOrigin origin)
Match cookie port attribute.
|
boolean |
RFC6265CookieSpec.match(Cookie cookie,
CookieOrigin origin) |
boolean |
RFC2109DomainHandler.match(Cookie cookie,
CookieOrigin origin) |
void |
BasicPathHandler.validate(Cookie cookie,
CookieOrigin origin) |
void |
DefaultCookieSpec.validate(Cookie cookie,
CookieOrigin origin) |
void |
RFC2965DiscardAttributeHandler.validate(Cookie cookie,
CookieOrigin origin) |
void |
RFC2965CommentUrlAttributeHandler.validate(Cookie cookie,
CookieOrigin origin) |
void |
BasicDomainHandler.validate(Cookie cookie,
CookieOrigin origin) |
void |
RFC2965DomainAttributeHandler.validate(Cookie cookie,
CookieOrigin origin)
Validate cookie domain attribute.
|
void |
RFC2109Spec.validate(Cookie cookie,
CookieOrigin origin) |
void |
AbstractCookieAttributeHandler.validate(Cookie cookie,
CookieOrigin origin) |
void |
NetscapeDomainHandler.validate(Cookie cookie,
CookieOrigin origin) |
void |
RFC2109VersionHandler.validate(Cookie cookie,
CookieOrigin origin) |
void |
RFC2965VersionAttributeHandler.validate(Cookie cookie,
CookieOrigin origin)
validate cookie version attribute.
|
void |
PublicSuffixDomainFilter.validate(Cookie cookie,
CookieOrigin origin) |
void |
PublicSuffixFilter.validate(Cookie cookie,
CookieOrigin origin)
Deprecated.
|
void |
RFC2965Spec.validate(Cookie cookie,
CookieOrigin origin) |
void |
CookieSpecBase.validate(Cookie cookie,
CookieOrigin origin) |
void |
RFC2965PortAttributeHandler.validate(Cookie cookie,
CookieOrigin origin)
Validate cookie port attribute.
|
void |
RFC6265CookieSpec.validate(Cookie cookie,
CookieOrigin origin) |
void |
RFC2109DomainHandler.validate(Cookie cookie,
CookieOrigin origin) |
Modifier and Type | Method and Description |
---|---|
List<org.apache.http.Header> |
IgnoreSpec.formatCookies(List<Cookie> cookies) |
List<org.apache.http.Header> |
DefaultCookieSpec.formatCookies(List<Cookie> cookies) |
List<org.apache.http.Header> |
NetscapeDraftSpec.formatCookies(List<Cookie> cookies) |
List<org.apache.http.Header> |
RFC2109Spec.formatCookies(List<Cookie> cookies) |
List<org.apache.http.Header> |
BrowserCompatSpec.formatCookies(List<Cookie> cookies)
Deprecated.
|
List<org.apache.http.Header> |
RFC6265CookieSpec.formatCookies(List<Cookie> cookies) |
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.