|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.teamdev.jxbrowser.cookie.HttpCookieStorage
public abstract class HttpCookieStorage
Represents HTTP cookie storage.
| Constructor Summary | |
|---|---|
HttpCookieStorage()
|
|
| Method Summary | |
|---|---|
abstract void |
deleteCookie(HttpCookie cookie)
Deletes the specified cookie. |
abstract void |
deleteCookie(java.util.List<HttpCookie> cookies)
Deletes all cookies from a given list of cookies. |
abstract java.util.List<HttpCookie> |
getCookies()
Returns the list of available cookies. |
abstract java.util.List<HttpCookie> |
getCookies(java.lang.String url)
Returns the list of available cookies that will be sent to a specified URL. |
static HttpCookieStorage |
getInstance(BrowserType browserType)
Returns the HttpCookieStorage for a given browserType. |
abstract void |
setCookie(HttpCookie cookie,
java.lang.String url)
Stores a specified cookie in browser's cookie storage. |
abstract void |
setCookie(java.util.List<HttpCookie> cookies,
java.lang.String url)
Stores cookies from a given list of cookies in browser's cookie storage. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpCookieStorage()
| Method Detail |
|---|
public abstract java.util.List<HttpCookie> getCookies()
public abstract java.util.List<HttpCookie> getCookies(java.lang.String url)
url - the URL to filter on.
public abstract void setCookie(HttpCookie cookie,
java.lang.String url)
cookie - the cookie to store.url - the URL associated with the added cookies.
public abstract void setCookie(java.util.List<HttpCookie> cookies,
java.lang.String url)
cookies in browser's cookie storage.
The cookies will replace existing cookies with the same name, domain, and path,
if one exists in the cookie storage.
cookies - the list of cookies to store.url - the URL associated with the added cookies.public abstract void deleteCookie(HttpCookie cookie)
cookie.
cookie - the cookie to delete.public abstract void deleteCookie(java.util.List<HttpCookie> cookies)
cookies.
cookies - the list of cookies to delete.public static HttpCookieStorage getInstance(BrowserType browserType)
HttpCookieStorage for a given browserType.
Different browser engines have their own HttpCookieStorage.
Browser engine's cookie storages do not have access the one of the other.
browserType - a browser engine type for which cookie storage is required.
HttpCookieStorage for a given browserType.
UnsupportedBrowserTypeException - when a given browserType doesn't provide any cookie storage.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||