com.vaadin.terminal.gwt.client.communication
Class JsonDecoder
java.lang.Object
com.vaadin.terminal.gwt.client.communication.JsonDecoder
public class JsonDecoder
- extends Object
Client side decoder for decodeing shared state and other values from JSON
received from the server.
Currently, basic data types as well as Map, String[] and Object[] are
supported, where maps and Object[] can contain other supported data types.
TODO extensible type support
- Since:
- 7.0
Method Summary |
static Object |
decodeValue(Type type,
com.google.gwt.json.client.JSONValue jsonValue,
Object target,
ApplicationConnection connection)
Decode a JSON array with two elements (type and value) into a client-side
type, recursively if necessary. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonDecoder
public JsonDecoder()
decodeValue
public static Object decodeValue(Type type,
com.google.gwt.json.client.JSONValue jsonValue,
Object target,
ApplicationConnection connection)
- Decode a JSON array with two elements (type and value) into a client-side
type, recursively if necessary.
- Parameters:
jsonValue
- JSON value with encoded dataconnection
- reference to the current ApplicationConnection
- Returns:
- decoded value (does not contain JSON types)
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.