Class CustomCookieStore
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.login.CustomCookieStore
-
- All Implemented Interfaces:
java.net.CookieStore
public class CustomCookieStore extends java.lang.Object implements java.net.CookieStorehttps://www.spigotmc.org/threads/javafx-webview-cookies.232902/
-
-
Constructor Summary
Constructors Constructor Description CustomCookieStore()The default ctor
-
Method Summary
Modifier and Type Method Description voidadd(java.net.URI uri, java.net.HttpCookie cookie)Add one cookie into cookie store.java.util.List<java.net.HttpCookie>get(java.net.URI 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.java.util.List<java.net.HttpCookie>getCookies()Get all cookies in cookie store, except those have expiredjava.util.List<java.net.URI>getURIs()Get all URIs, which are associated with at least one cookie of this cookie store.booleanremove(java.net.URI uri, java.net.HttpCookie ck)Remove a cookie from storebooleanremoveAll()Remove all cookies in this cookie store.
-
-
-
Method Detail
-
add
public void add(java.net.URI uri, java.net.HttpCookie cookie)Add one cookie into cookie store.- Specified by:
addin interfacejava.net.CookieStore
-
get
public java.util.List<java.net.HttpCookie> get(java.net.URI 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.- Specified by:
getin interfacejava.net.CookieStore
-
getCookies
public java.util.List<java.net.HttpCookie> getCookies()
Get all cookies in cookie store, except those have expired- Specified by:
getCookiesin interfacejava.net.CookieStore
-
getURIs
public java.util.List<java.net.URI> getURIs()
Get all URIs, which are associated with at least one cookie of this cookie store.- Specified by:
getURIsin interfacejava.net.CookieStore
-
remove
public boolean remove(java.net.URI uri, java.net.HttpCookie ck)Remove a cookie from store- Specified by:
removein interfacejava.net.CookieStore
-
removeAll
public boolean removeAll()
Remove all cookies in this cookie store.- Specified by:
removeAllin interfacejava.net.CookieStore
-
-