
| Constructor and Description |
|---|
StorageReadProxy(boolean session)
Creates a storage read proxy that retrieves data from HTML5 browser based
storage.
|
StorageReadProxy(Storage storage)
Creates a storage read proxy that retrieves data from the given HTML5
browser based storage.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getKeyFromConfig(C loadConfig)
Generates a storage key from the given load config.
|
DataWriter<C,String> |
getWriter() |
void |
load(C loadConfig,
<any> callback)
Data should be retrieved using the specified load config.
|
void |
save(C saveConfig,
String data)
Save a value in the HTML5 browser based storage.
|
void |
setWriter(DataWriter<C,String> writer) |
public StorageReadProxy(boolean session)
session - true to use session storage, false to use local storagepublic StorageReadProxy(Storage storage)
storage - the browser based storagepublic DataWriter<C,String> getWriter()
public void setWriter(DataWriter<C,String> writer)
public void load(C loadConfig, <any> callback)
DataProxyDataReader can be used to "process" the raw data.public void save(C saveConfig, String data)
saveConfig - provides the source of the storage key (see
getKeyFromConfig(Object)).data - the value to save, associated with saveConfigCopyright © 2018. All rights reserved.