Package com.vaadin.client
Class StorageUtil
- java.lang.Object
-
- com.vaadin.client.StorageUtil
-
public class StorageUtil extends Object
Includes utility methods to interact with HTML storage API.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetLocalItem(String key)Gets an item value from the local storage.static StringgetSessionItem(String key)Gets an item value from the session storage.static voidsetLocalItem(String key, String value)Sets an item value in the local storage.static voidsetSessionItem(String key, String value)Sets an item value in the session storage.
-
-
-
Method Detail
-
getLocalItem
public static String getLocalItem(String key)
Gets an item value from the local storage.- Parameters:
key- the item key- Returns:
- the value of the item
-
setLocalItem
public static void setLocalItem(String key, String value)
Sets an item value in the local storage.- Parameters:
key- the item keyvalue- the item value
-
getSessionItem
public static String getSessionItem(String key)
Gets an item value from the session storage.- Parameters:
key- the item key- Returns:
- the value of the item
-
-