Package | Description |
---|---|
org.apache.commons.httpclient |
Classes and interfaces supporting the client side of the HTTP protocol.
|
org.apache.commons.httpclient.cookie |
Provides cookie handling in conjunction with
Cookie . |
Modifier and Type | Method and Description |
---|---|
Cookie[] |
HttpState.getCookies()
Returns an array of
cookies that this HTTP
state currently contains. |
Cookie[] |
HttpState.getCookies(java.lang.String domain,
int port,
java.lang.String path,
boolean secure)
Deprecated.
use CookieSpec#match(String, int, String, boolean, Cookie)
|
Modifier and Type | Method and Description |
---|---|
void |
HttpState.addCookie(Cookie cookie)
Adds an
HTTP cookie , replacing any existing equivalent cookies. |
void |
HttpState.addCookies(Cookie[] cookies)
Adds an array of
HTTP cookies . |
Modifier and Type | Class and Description |
---|---|
class |
Cookie2
Cookie class for
RFC2965Spec
cookie specification. |
Modifier and Type | Method and Description |
---|---|
Cookie[] |
CookieSpecBase.match(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie[] cookies)
Return an array of
Cookie s that should be submitted with a
request with given attributes, false otherwise. |
Cookie[] |
CookieSpec.match(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie[] cookies)
Determines which of an array of Cookies matches a location.
|
Cookie[] |
IgnoreCookiesSpec.match(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie[] cookies)
Returns an empty
cookie array. |
Cookie[] |
CookieSpecBase.parse(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Header header)
|
Cookie[] |
CookieSpec.parse(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Header header)
Parse the "Set-Cookie" Header into an array of Cookies.
|
Cookie[] |
IgnoreCookiesSpec.parse(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Header header)
Returns an empty
cookie array. |
Cookie[] |
RFC2965Spec.parse(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Header header)
Parses the Set-Cookie2 value into an array of Cookies.
|
Cookie[] |
NetscapeDraftSpec.parse(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
java.lang.String header)
Parses the Set-Cookie value into an array of Cookies.
|
Cookie[] |
CookieSpecBase.parse(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
java.lang.String header)
Parses the Set-Cookie value into an array of Cookies.
|
Cookie[] |
CookieSpec.parse(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
java.lang.String header)
Parse the "Set-Cookie" header value into Cookie array.
|
Cookie[] |
IgnoreCookiesSpec.parse(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
java.lang.String header)
Returns an empty
cookie array. |
Cookie[] |
RFC2965Spec.parse(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
java.lang.String header) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
CookieSpecBase.formatCookie(Cookie cookie)
Return a string suitable for sending in a "Cookie" header
|
java.lang.String |
CookieSpec.formatCookie(Cookie cookie)
Create a "Cookie" header value for an array of cookies.
|
java.lang.String |
IgnoreCookiesSpec.formatCookie(Cookie cookie) |
java.lang.String |
RFC2109Spec.formatCookie(Cookie cookie)
Return a string suitable for sending in a "Cookie" header as
defined in RFC 2109
|
java.lang.String |
RFC2965Spec.formatCookie(Cookie cookie)
Return a string suitable for sending in a "Cookie" header as
defined in RFC 2965
|
Header |
CookieSpecBase.formatCookieHeader(Cookie cookie)
|
Header |
CookieSpec.formatCookieHeader(Cookie cookie)
Create a "Cookie" Header for single Cookie.
|
Header |
IgnoreCookiesSpec.formatCookieHeader(Cookie cookie) |
Header |
CookieSpecBase.formatCookieHeader(Cookie[] cookies)
|
Header |
CookieSpec.formatCookieHeader(Cookie[] cookies)
Create a "Cookie" Header for an array of Cookies.
|
Header |
IgnoreCookiesSpec.formatCookieHeader(Cookie[] cookies) |
java.lang.String |
CookieSpecBase.formatCookies(Cookie[] cookies)
Create a "Cookie" header value containing all
Cookie s in
cookies suitable for sending in a "Cookie" header |
java.lang.String |
CookieSpec.formatCookies(Cookie[] cookies)
Create a "Cookie" header value for an array of cookies.
|
java.lang.String |
IgnoreCookiesSpec.formatCookies(Cookie[] cookies) |
java.lang.String |
RFC2109Spec.formatCookies(Cookie[] cookies)
Create a RFC 2109 compliant "Cookie" header value containing all
Cookie s in cookies suitable for sending in a "Cookie"
header |
java.lang.String |
RFC2965Spec.formatCookies(Cookie[] cookies)
Create a RFC 2965 compliant "Cookie" header value containing all
Cookie s suitable for
sending in a "Cookie" header |
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 |
CookieSpecBase.match(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie cookie)
Return true if the cookie should be submitted with a request
with given attributes, false otherwise.
|
boolean |
CookieSpec.match(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie cookie)
Determines if a Cookie matches a location.
|
boolean |
IgnoreCookiesSpec.match(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie cookie) |
boolean |
RFC2965Spec.match(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie cookie)
Return true if the cookie should be submitted with a request
with given attributes, false otherwise.
|
Cookie[] |
CookieSpecBase.match(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie[] cookies)
Return an array of
Cookie s that should be submitted with a
request with given attributes, false otherwise. |
Cookie[] |
CookieSpec.match(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie[] cookies)
Determines which of an array of Cookies matches a location.
|
Cookie[] |
IgnoreCookiesSpec.match(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie[] cookies)
Returns an empty
cookie array. |
void |
CookieAttributeHandler.parse(Cookie cookie,
java.lang.String value)
Parse the given cookie attribute value and update the corresponding
Cookie property. |
void |
NetscapeDraftSpec.parseAttribute(NameValuePair attribute,
Cookie cookie)
Parse the cookie attribute and update the corresponsing
Cookie
properties as defined by the Netscape draft specification |
void |
CookieSpecBase.parseAttribute(NameValuePair attribute,
Cookie cookie)
Parse the cookie attribute and update the corresponsing
Cookie
properties. |
void |
CookieSpec.parseAttribute(NameValuePair attribute,
Cookie cookie)
Parse the cookie attribute and update the corresponsing Cookie
properties.
|
void |
IgnoreCookiesSpec.parseAttribute(NameValuePair attribute,
Cookie cookie)
Does nothing.
|
void |
RFC2109Spec.parseAttribute(NameValuePair attribute,
Cookie cookie)
Parse RFC 2109 specific cookie attribute and update the corresponsing
Cookie properties. |
void |
RFC2965Spec.parseAttribute(NameValuePair attribute,
Cookie cookie)
Parse RFC 2965 specific cookie attribute and update the corresponsing
Cookie properties. |
void |
CookieAttributeHandler.validate(Cookie cookie,
CookieOrigin origin)
Peforms cookie validation for the given attribute value.
|
void |
NetscapeDraftSpec.validate(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie cookie)
Performs Netscape draft compliant
Cookie validation |
void |
CookieSpecBase.validate(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie cookie)
Performs most common
Cookie validation |
void |
CookieSpec.validate(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie cookie)
Validate the cookie according to validation rules defined by the
cookie specification.
|
void |
IgnoreCookiesSpec.validate(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie cookie)
Does nothing.
|
void |
RFC2109Spec.validate(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie cookie)
Performs RFC 2109 compliant
Cookie validation |
void |
RFC2965Spec.validate(java.lang.String host,
int port,
java.lang.String path,
boolean secure,
Cookie cookie)
Performs RFC 2965 compliant
Cookie validation |
Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.