Class ClientCookieStore
- java.lang.Object
-
- com.sun.enterprise.admin.cli.remote.ClientCookieStore
-
- All Implemented Interfaces:
CookieStore
public class ClientCookieStore extends Object implements CookieStore
-
-
Constructor Summary
Constructors Constructor Description ClientCookieStore(CookieStore cookieStore, File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(URI uri, HttpCookie cookie)List<HttpCookie>get(URI uri)List<HttpCookie>getCookies()URIgetStaticURI()List<URI>getURIs()voidload()Load the persisted cookies into the CookieStore.booleanremove(URI uri, HttpCookie cookie)booleanremoveAll()voidstore()Store the cookies in the CookieStore to the provided location.booleantouchStore()
-
-
-
Field Detail
-
uri
protected URI uri
-
-
Constructor Detail
-
ClientCookieStore
public ClientCookieStore(CookieStore cookieStore, File file)
-
-
Method Detail
-
add
public void add(URI uri, HttpCookie cookie)
- Specified by:
addin interfaceCookieStore
-
get
public List<HttpCookie> get(URI uri)
- Specified by:
getin interfaceCookieStore
-
getCookies
public List<HttpCookie> getCookies()
- Specified by:
getCookiesin interfaceCookieStore
-
getURIs
public List<URI> getURIs()
- Specified by:
getURIsin interfaceCookieStore
-
remove
public boolean remove(URI uri, HttpCookie cookie)
- Specified by:
removein interfaceCookieStore
-
removeAll
public boolean removeAll()
- Specified by:
removeAllin interfaceCookieStore
-
getStaticURI
public URI getStaticURI()
-
load
public void load() throws IOExceptionLoad the persisted cookies into the CookieStore. The store has this schema: COOKIE1=xxx; ... COOKIE2=yyy; ...- Throws:
IOException
-
store
public void store() throws IOExceptionStore the cookies in the CookieStore to the provided location. This method will overwrite the contents of the target file.- Throws:
IOException
-
touchStore
public boolean touchStore()
-
-