public interface Storage
| Modifier and Type | Method and Description |
|---|---|
void |
clearCookies()
Clears cookies.
|
void |
clearCookies(String browserContextId)
Clears cookies.
|
void |
clearDataForOrigin(String origin,
String storageTypes)
Clears storage for origin.
|
Boolean |
clearTrustTokens(String issuerOrigin)
Removes all Trust Tokens issued by the provided issuerOrigin.
|
List<Cookie> |
getCookies()
Returns all browser cookies.
|
List<Cookie> |
getCookies(String browserContextId)
Returns all browser cookies.
|
List<TrustTokens> |
getTrustTokens()
Returns the number of stored Trust Tokens per issuer for the current browsing context.
|
UsageAndQuota |
getUsageAndQuota(String origin)
Returns usage and quota in bytes.
|
EventListener |
onCacheStorageContentUpdated(EventHandler<CacheStorageContentUpdated> eventListener)
A cache's contents have been modified.
|
EventListener |
onCacheStorageListUpdated(EventHandler<CacheStorageListUpdated> eventListener)
A cache has been added/deleted.
|
EventListener |
onIndexedDBContentUpdated(EventHandler<IndexedDBContentUpdated> eventListener)
The origin's IndexedDB object store has been modified.
|
EventListener |
onIndexedDBListUpdated(EventHandler<IndexedDBListUpdated> eventListener)
The origin's IndexedDB database list has been modified.
|
void |
overrideQuotaForOrigin(String origin)
Override quota for the specified origin
|
void |
overrideQuotaForOrigin(String origin,
Double quotaSize)
Override quota for the specified origin
|
void |
setCookies(List<CookieParam> cookies)
Sets given cookies.
|
void |
setCookies(List<CookieParam> cookies,
String browserContextId)
Sets given cookies.
|
void |
trackCacheStorageForOrigin(String origin)
Registers origin to be notified when an update occurs to its cache storage list.
|
void |
trackIndexedDBForOrigin(String origin)
Registers origin to be notified when an update occurs to its IndexedDB.
|
void |
untrackCacheStorageForOrigin(String origin)
Unregisters origin from receiving notifications for cache storage.
|
void |
untrackIndexedDBForOrigin(String origin)
Unregisters origin from receiving notifications for IndexedDB.
|
void clearDataForOrigin(String origin, String storageTypes)
origin - Security origin.storageTypes - Comma separated list of StorageType to clear.List<Cookie> getCookies(String browserContextId)
browserContextId - Browser context to use when called on the browser endpoint.void setCookies(List<CookieParam> cookies)
cookies - Cookies to be set.void setCookies(List<CookieParam> cookies, String browserContextId)
cookies - Cookies to be set.browserContextId - Browser context to use when called on the browser endpoint.void clearCookies()
void clearCookies(String browserContextId)
browserContextId - Browser context to use when called on the browser endpoint.UsageAndQuota getUsageAndQuota(String origin)
origin - Security origin.void overrideQuotaForOrigin(String origin)
origin - Security origin.void overrideQuotaForOrigin(String origin, Double quotaSize)
origin - Security origin.quotaSize - The quota size (in bytes) to override the original quota with. If this is
called multiple times, the overridden quota will be equal to the quotaSize provided in the
final call. If this is called without specifying a quotaSize, the quota will be reset to
the default value for the specified origin. If this is called multiple times with different
origins, the override will be maintained for each origin until it is disabled (called
without a quotaSize).void trackCacheStorageForOrigin(String origin)
origin - Security origin.void trackIndexedDBForOrigin(String origin)
origin - Security origin.void untrackCacheStorageForOrigin(String origin)
origin - Security origin.void untrackIndexedDBForOrigin(String origin)
origin - Security origin.List<TrustTokens> getTrustTokens()
Boolean clearTrustTokens(String issuerOrigin)
issuerOrigin - EventListener onCacheStorageContentUpdated(EventHandler<CacheStorageContentUpdated> eventListener)
EventListener onCacheStorageListUpdated(EventHandler<CacheStorageListUpdated> eventListener)
EventListener onIndexedDBContentUpdated(EventHandler<IndexedDBContentUpdated> eventListener)
EventListener onIndexedDBListUpdated(EventHandler<IndexedDBListUpdated> eventListener)
Copyright © 2021 Kenan Klisura. All rights reserved.