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:
  - Serialized Form

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static enum`
  `StorageHolder.Type`
  Type for Storage.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StorageHolder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Map<String,String>`
  `getLocalStorage(URL url)`
  Gets the local storage (map).
  `Map<String,String>`
  `getSessionStorage(WebWindow webWindow)`
  Gets the local storage (map).
  `Map<String,String>`
  `getStore(StorageHolder.Type storageType, Page page)`
  Gets the store of the give type for the page.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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