InMemoryCookieStore

A simple in-memory CookieStore implementation

@author Edward Wang

Constructors

this
this()
Undocumented in source.

Members

Functions

add
void add(HttpURI uri, HttpCookie cookie)

Add one cookie into cookie store.

clearExpired
bool clearExpired()

Removes all of {@link Cookie cookies} in this HTTP state that have expired by the specified {@link java.util.Date date}.

get
HttpCookie[] get(string uri)

Get all cookies, which: 1) given uri domain-matches with, or, associated with given uri when added to the cookie store. 3) not expired. See RFC 2965 sec. 3.3.4 for more detail.

getCookies
HttpCookie[] getCookies()

Get all cookies in cookie store, except those have expired

getURIs
string[] getURIs()

Get all URIs, which are associated with at least one cookie of this cookie store.

remove
bool remove(string uri, HttpCookie cookie)

Remove a cookie from store

removeAll
bool removeAll()

Remove all cookies in this cookie store.

Inherited Members

From CookieStore

add
void add(HttpURI uri, HttpCookie cookie)

Adds one HTTP cookie to the store. This is called for every incoming HTTP response.

get
HttpCookie[] get(string uri)

Retrieve cookies associated with given URI, or whose domain matches the given URI. Only cookies that have not expired are returned. This is called for every outgoing HTTP request.

getCookies
HttpCookie[] getCookies()

Get all not-expired cookies in cookie store.

getURIs
string[] getURIs()

Get all URIs which identify the cookies in this cookie store.

remove
bool remove(string uri, HttpCookie cookie)

Remove a cookie from store.

removeAll
bool removeAll()

Remove all cookies in this cookie store.

clear
alias clear = removeAll
Undocumented in source.
clearExpired
bool clearExpired()

Removes all of {@link Cookie}s in this store that have expired by the specified SysTime.

Meta