|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.web.bindery.requestfactory.shared.DefaultProxyStore
public class DefaultProxyStore
An in-memory ProxyStore store that can encode its state as a JSON object literal.
Constructor Summary | |
---|---|
DefaultProxyStore()
Construct an empty DefaultProxyStore. |
|
DefaultProxyStore(java.lang.String payload)
Construct a DefaultProxyStore using the a value returned from encode() . |
Method Summary | |
---|---|
java.lang.String |
encode()
Return a JSON object literal with the contents of the store. |
Splittable |
get(java.lang.String key)
Called by ProxySerializer to retrieve a value previously provided
to ProxyStore.put(String, Splittable) . |
int |
nextId()
Returns a non-negative sequence number. |
void |
put(java.lang.String key,
Splittable value)
Called by ProxySerializer to store a value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultProxyStore()
public DefaultProxyStore(java.lang.String payload) throws java.lang.IllegalArgumentException
encode()
.
payload
- a String previously returned from encode()
java.lang.IllegalArgumentException
- if the payload cannot be parsedMethod Detail |
---|
public java.lang.String encode()
public Splittable get(java.lang.String key)
ProxyStore
ProxySerializer
to retrieve a value previously provided
to ProxyStore.put(String, Splittable)
.
get
in interface ProxyStore
key
- the key
null
if key
is unknownpublic int nextId()
ProxyStore
nextId
in interface ProxyStore
public void put(java.lang.String key, Splittable value)
ProxyStore
ProxySerializer
to store a value.
put
in interface ProxyStore
key
- a key value that will be passed to ProxyStore.get(String)
value
- the data to storeSplittable.getPayload()
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |