public class ClientCookieStore extends Object implements CookieStore
Constructor and Description |
---|
ClientCookieStore(CookieStore cookieStore,
File file) |
Modifier and Type | Method and Description |
---|---|
void |
add(URI uri,
HttpCookie cookie) |
List<HttpCookie> |
get(URI uri) |
List<HttpCookie> |
getCookies() |
URI |
getStaticURI() |
List<URI> |
getURIs() |
void |
load()
Load the persisted cookies into the CookieStore.
|
boolean |
remove(URI uri,
HttpCookie cookie) |
boolean |
removeAll() |
void |
store()
Store the cookies in the CookieStore to the provided location.
|
boolean |
touchStore() |
protected URI uri
public ClientCookieStore(CookieStore cookieStore, File file)
public void add(URI uri, HttpCookie cookie)
add
in interface CookieStore
public List<HttpCookie> get(URI uri)
get
in interface CookieStore
public List<HttpCookie> getCookies()
getCookies
in interface CookieStore
public List<URI> getURIs()
getURIs
in interface CookieStore
public boolean remove(URI uri, HttpCookie cookie)
remove
in interface CookieStore
public boolean removeAll()
removeAll
in interface CookieStore
public URI getStaticURI()
public void load() throws IOException
IOException
public void store() throws IOException
IOException
public boolean touchStore()
Copyright © 2018. All rights reserved.