Package org.htmlunit

Class StorageHolder

java.lang.Object
org.htmlunit.StorageHolder
All Implemented Interfaces:
Serializable

public class StorageHolder extends Object implements Serializable
Holder for different types of storages.

Experimental API: May be changed in next release!

See Also:
  • Constructor Details

    • StorageHolder

      public StorageHolder()
  • Method Details

    • getStore

      public Map<String,String> getStore(StorageHolder.Type storageType, Page page)
      Gets the store of the give type for the page.
      Parameters:
      storageType - the type
      page - the page
      Returns:
      the store
    • getLocalStorage

      public Map<String,String> getLocalStorage(URL url)
      Gets the local storage (map).
      Parameters:
      url - the page origin
      Returns:
      the store
    • getSessionStorage

      public Map<String,String> getSessionStorage(WebWindow webWindow)
      Gets the local storage (map).
      Parameters:
      webWindow - the window
      Returns:
      the store