Package | Description |
---|---|
org.apache.hc.client5.http.cookie |
Client HTTP state management APIs.
|
org.apache.hc.client5.http.impl.cookie |
Standard and common HTTP cookie management policies.
|
Modifier and Type | Interface and Description |
---|---|
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. |
Modifier and Type | Method and Description |
---|---|
List<Cookie> |
CookieStore.getCookies()
Returns all cookies contained in this store.
|
List<Cookie> |
BasicCookieStore.getCookies()
Returns an immutable array of
cookies that this HTTP
state currently contains. |
List<Cookie> |
CookieSpec.parse(org.apache.hc.core5.http.Header header,
CookieOrigin origin)
Parse the
"Set-Cookie" Header into an array of Cookies. |
Modifier and Type | Method and Description |
---|---|
void |
CookieStore.addCookie(Cookie cookie)
Adds an
Cookie , replacing any existing equivalent cookies. |
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 . |
int |
CookieIdentityComparator.compare(Cookie c1,
Cookie c2) |
int |
CookiePathComparator.compare(Cookie c1,
Cookie c2) |
int |
CookiePriorityComparator.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)
Performs 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.hc.core5.http.Header> |
CookieSpec.formatCookies(List<Cookie> cookies)
Create
"Cookie" headers for an array of Cookies. |
Modifier and Type | Class and Description |
---|---|
class |
BasicClientCookie
Default implementation of
SetCookie . |
Modifier and Type | Method and Description |
---|---|
List<Cookie> |
IgnoreSpecSpec.parse(org.apache.hc.core5.http.Header header,
CookieOrigin origin) |
List<Cookie> |
RFC6265CookieSpec.parse(org.apache.hc.core5.http.Header header,
CookieOrigin origin) |
protected List<Cookie> |
CookieSpecBase.parse(org.apache.hc.core5.http.HeaderElement[] elems,
CookieOrigin origin) |
Modifier and Type | Method and Description |
---|---|
boolean |
PublicSuffixDomainFilter.match(Cookie cookie,
CookieOrigin origin)
Never matches if the cookie's domain is from the blacklist.
|
boolean |
AbstractCookieAttributeHandler.match(Cookie cookie,
CookieOrigin origin) |
boolean |
BasicSecureHandler.match(Cookie cookie,
CookieOrigin origin) |
boolean |
IgnoreSpecSpec.match(Cookie cookie,
CookieOrigin origin) |
boolean |
CookieSpecBase.match(Cookie cookie,
CookieOrigin origin) |
boolean |
BasicDomainHandler.match(Cookie cookie,
CookieOrigin origin) |
boolean |
BasicHttpOnlyHandler.match(Cookie cookie,
CookieOrigin origin) |
boolean |
RFC6265CookieSpec.match(Cookie cookie,
CookieOrigin origin) |
boolean |
BasicPathHandler.match(Cookie cookie,
CookieOrigin origin) |
void |
PublicSuffixDomainFilter.validate(Cookie cookie,
CookieOrigin origin) |
void |
AbstractCookieAttributeHandler.validate(Cookie cookie,
CookieOrigin origin) |
void |
CookieSpecBase.validate(Cookie cookie,
CookieOrigin origin) |
void |
BasicDomainHandler.validate(Cookie cookie,
CookieOrigin origin) |
void |
BasicHttpOnlyHandler.validate(Cookie cookie,
CookieOrigin origin) |
void |
RFC6265CookieSpec.validate(Cookie cookie,
CookieOrigin origin) |
void |
BasicPathHandler.validate(Cookie cookie,
CookieOrigin origin) |
Modifier and Type | Method and Description |
---|---|
List<org.apache.hc.core5.http.Header> |
IgnoreSpecSpec.formatCookies(List<Cookie> cookies) |
List<org.apache.hc.core5.http.Header> |
RFC6265CookieSpec.formatCookies(List<Cookie> cookies) |
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.