Package org.htmlunit
Class StorageHolder
java.lang.Object
org.htmlunit.StorageHolder
- All Implemented Interfaces:
Serializable
Holder for different types of storages.
Experimental API: May be changed in next release!
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLocalStorage
(URL url) Gets the local storage (map).getSessionStorage
(WebWindow webWindow) Gets the local storage (map).getStore
(StorageHolder.Type storageType, Page page) Gets the store of the give type for the page.
-
Constructor Details
-
StorageHolder
public StorageHolder()
-
-
Method Details
-
getStore
Gets the store of the give type for the page.- Parameters:
storageType
- the typepage
- the page- Returns:
- the store
-
getLocalStorage
Gets the local storage (map).- Parameters:
url
- the page origin- Returns:
- the store
-
getSessionStorage
Gets the local storage (map).- Parameters:
webWindow
- the window- Returns:
- the store
-