Package | Description |
---|---|
org.apache.commons.httpclient | |
org.apache.commons.httpclient.cookie | |
org.archive.modules.fetcher |
Modifier and Type | Method and Description |
---|---|
Cookie[] |
HttpState.getCookies()
Deprecated.
use getCookiesMap() // <- IA/HERITRIX CHANGE
|
Cookie[] |
HttpState.getCookies(String domain,
int port,
String path,
boolean secure)
Deprecated.
use CookieSpec#match(String, int, String, boolean, Cookie)
|
Modifier and Type | Method and Description |
---|---|
SortedMap<String,Cookie> |
HttpState.getCookiesMap()
Returns a sorted map of
cookies that this HTTP
state currently contains. |
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 | Method and Description |
---|---|
void |
HttpState.setCookiesMap(SortedMap<String,Cookie> map)
Replace the standard sorted map with an external implemenations
(such as one backed by persistent store, like BDB's StoredSortedMap.)
|
Modifier and Type | Method and Description |
---|---|
Cookie[] |
IgnoreCookiesSpec.match(String host,
int port,
String path,
boolean secure,
Cookie[] cookies)
Returns an empty
cookie array. |
Cookie[] |
CookieSpec.match(String host,
int port,
String path,
boolean secure,
Cookie[] cookies)
Deprecated.
use match(String, int, String, boolean, SortedMap)
// END IA/HERITRIX CHANGES
|
Cookie[] |
CookieSpecBase.match(String host,
int port,
String path,
boolean secure,
Cookie[] cookies)
Deprecated.
use match(String, int, String, boolean, SortedMap)
// END IA/HERITRIX CHANGES
|
Cookie[] |
IgnoreCookiesSpec.match(String domain,
int port,
String path,
boolean secure,
SortedMap<String,Cookie> cookiesMap) |
Cookie[] |
CookieSpec.match(String domain,
int port,
String path,
boolean secure,
SortedMap<String,Cookie> cookiesMap)
Determines which of an array of Cookies matches a location.
|
Cookie[] |
CookieSpecBase.match(String host,
int port,
String path,
boolean secure,
SortedMap<String,Cookie> cookies)
Return an array of
Cookie s that should be submitted with a
request with given attributes, false otherwise. |
Cookie[] |
IgnoreCookiesSpec.parse(String host,
int port,
String path,
boolean secure,
org.apache.commons.httpclient.Header header)
Returns an empty
cookie array. |
Cookie[] |
CookieSpec.parse(String host,
int port,
String path,
boolean secure,
org.apache.commons.httpclient.Header header)
Parse the "Set-Cookie" Header into an array of Cookies.
|
Cookie[] |
CookieSpecBase.parse(String host,
int port,
String path,
boolean secure,
org.apache.commons.httpclient.Header header)
Parse the "Set-Cookie"
Header into an array of Cookie s. |
Cookie[] |
IgnoreCookiesSpec.parse(String host,
int port,
String path,
boolean secure,
String header)
Returns an empty
cookie array. |
Cookie[] |
CookieSpec.parse(String host,
int port,
String path,
boolean secure,
String header)
Parse the "Set-Cookie" header value into Cookie array.
|
Cookie[] |
CookieSpecBase.parse(String host,
int port,
String path,
boolean secure,
String header)
Parses the Set-Cookie value into an array of Cookies.
|
Modifier and Type | Method and Description |
---|---|
String |
IgnoreCookiesSpec.formatCookie(Cookie cookie) |
String |
CookieSpec.formatCookie(Cookie cookie)
Create a "Cookie" header value for an array of cookies.
|
String |
CookieSpecBase.formatCookie(Cookie cookie)
Return a string suitable for sending in a "Cookie" header
|
org.apache.commons.httpclient.Header |
IgnoreCookiesSpec.formatCookieHeader(Cookie cookie) |
org.apache.commons.httpclient.Header |
CookieSpec.formatCookieHeader(Cookie cookie)
Create a "Cookie" Header for single Cookie.
|
org.apache.commons.httpclient.Header |
CookieSpecBase.formatCookieHeader(Cookie cookie)
Create a "Cookie"
Header containing the Cookie . |
org.apache.commons.httpclient.Header |
IgnoreCookiesSpec.formatCookieHeader(Cookie[] cookies) |
org.apache.commons.httpclient.Header |
CookieSpec.formatCookieHeader(Cookie[] cookies)
Create a "Cookie" Header for an array of Cookies.
|
org.apache.commons.httpclient.Header |
CookieSpecBase.formatCookieHeader(Cookie[] cookies)
Create a "Cookie"
Header containing all Cookie s
in cookies. |
String |
IgnoreCookiesSpec.formatCookies(Cookie[] cookies) |
String |
CookieSpec.formatCookies(Cookie[] cookies)
Create a "Cookie" header value for an array of cookies.
|
String |
CookieSpecBase.formatCookies(Cookie[] cookies)
Create a "Cookie" header value containing all
Cookie s in
cookies suitable for sending in a "Cookie" header |
boolean |
IgnoreCookiesSpec.match(String host,
int port,
String path,
boolean secure,
Cookie cookie) |
boolean |
CookieSpec.match(String host,
int port,
String path,
boolean secure,
Cookie cookie)
Determines if a Cookie matches a location.
|
boolean |
CookieSpecBase.match(String host,
int port,
String path,
boolean secure,
Cookie cookie)
Return true if the cookie should be submitted with a request
with given attributes, false otherwise.
|
Cookie[] |
IgnoreCookiesSpec.match(String host,
int port,
String path,
boolean secure,
Cookie[] cookies)
Returns an empty
cookie array. |
Cookie[] |
CookieSpec.match(String host,
int port,
String path,
boolean secure,
Cookie[] cookies)
Deprecated.
use match(String, int, String, boolean, SortedMap)
// END IA/HERITRIX CHANGES
|
Cookie[] |
CookieSpecBase.match(String host,
int port,
String path,
boolean secure,
Cookie[] cookies)
Deprecated.
use match(String, int, String, boolean, SortedMap)
// END IA/HERITRIX CHANGES
|
void |
IgnoreCookiesSpec.parseAttribute(org.apache.commons.httpclient.NameValuePair attribute,
Cookie cookie)
Does nothing.
|
void |
CookieSpec.parseAttribute(org.apache.commons.httpclient.NameValuePair attribute,
Cookie cookie)
Parse the cookie attribute and update the corresponsing Cookie
properties.
|
void |
CookieSpecBase.parseAttribute(org.apache.commons.httpclient.NameValuePair attribute,
Cookie cookie)
Parse the cookie attribute and update the corresponsing
Cookie
properties. |
void |
IgnoreCookiesSpec.validate(String host,
int port,
String path,
boolean secure,
Cookie cookie)
Does nothing.
|
void |
CookieSpec.validate(String host,
int port,
String path,
boolean secure,
Cookie cookie)
Validate the cookie according to validation rules defined by the
cookie specification.
|
void |
CookieSpecBase.validate(String host,
int port,
String path,
boolean secure,
Cookie cookie)
Performs most common
Cookie validation |
Modifier and Type | Method and Description |
---|---|
Cookie[] |
IgnoreCookiesSpec.match(String domain,
int port,
String path,
boolean secure,
SortedMap<String,Cookie> cookiesMap) |
Cookie[] |
CookieSpec.match(String domain,
int port,
String path,
boolean secure,
SortedMap<String,Cookie> cookiesMap)
Determines which of an array of Cookies matches a location.
|
Cookie[] |
CookieSpecBase.match(String host,
int port,
String path,
boolean secure,
SortedMap<String,Cookie> cookies)
Return an array of
Cookie s that should be submitted with a
request with given attributes, false otherwise. |
Modifier and Type | Method and Description |
---|---|
SortedMap<String,Cookie> |
CookieStorage.getCookiesMap() |
SortedMap<String,Cookie> |
SimpleCookieStorage.getCookiesMap() |
abstract SortedMap<String,Cookie> |
AbstractCookieStorage.getCookiesMap() |
SortedMap<String,Cookie> |
BdbCookieStorage.getCookiesMap() |
protected SortedMap<String,Cookie> |
SimpleCookieStorage.prepareMap() |
protected abstract SortedMap<String,Cookie> |
AbstractCookieStorage.prepareMap() |
protected SortedMap<String,Cookie> |
BdbCookieStorage.prepareMap() |
Modifier and Type | Method and Description |
---|---|
void |
SimpleCookieStorage.innerSaveCookiesMap(Map<String,Cookie> map) |
protected abstract void |
AbstractCookieStorage.innerSaveCookiesMap(Map<String,Cookie> map) |
protected void |
BdbCookieStorage.innerSaveCookiesMap(Map<String,Cookie> map) |
protected static void |
AbstractCookieStorage.loadCookies(ConfigFile file,
SortedMap<String,Cookie> cookies) |
static void |
AbstractCookieStorage.loadCookies(Reader reader,
SortedMap<String,Cookie> cookies)
Load cookies.
|
static void |
AbstractCookieStorage.loadCookies(String cookiesFile,
SortedMap<String,Cookie> result) |
static void |
AbstractCookieStorage.saveCookies(String saveCookiesFile,
Map<String,Cookie> cookies) |
void |
CookieStorage.saveCookiesMap(Map<String,Cookie> map) |
void |
AbstractCookieStorage.saveCookiesMap(Map<String,Cookie> map) |
Copyright © 2003-2014 Internet Archive. All Rights Reserved.