org.atmosphere.gwt20.server
Class GwtRpcUtil
java.lang.Object
org.atmosphere.gwt20.server.GwtRpcUtil
- All Implemented Interfaces:
- ServerSerializerProvider
public class GwtRpcUtil
- extends Object
- implements ServerSerializerProvider
- Author:
- p.havelaar
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERIALIZER_PROVIDER_NAME
public static final String SERIALIZER_PROVIDER_NAME
- See Also:
- Constant Field Values
GwtRpcUtil
public GwtRpcUtil()
getName
public String getName()
- Specified by:
getName in interface ServerSerializerProvider
getServerSerializer
public ServerSerializer getServerSerializer()
- Specified by:
getServerSerializer in interface ServerSerializerProvider
getSerializationPolicyProvider
public static com.google.gwt.user.server.rpc.SerializationPolicyProvider getSerializationPolicyProvider()
getSerializationPolicy
public static com.google.gwt.user.server.rpc.SerializationPolicy getSerializationPolicy()
streamToString
public static String streamToString(InputStream in,
String charset)
throws IOException,
UnsupportedEncodingException
- Throws:
IOException
UnsupportedEncodingException
readerToString
public static String readerToString(BufferedReader r)
throws IOException
- Throws:
IOException
deserialize
public static Object deserialize(String data)
throws com.google.gwt.user.client.rpc.SerializationException
- Throws:
com.google.gwt.user.client.rpc.SerializationException
serialize
public static String serialize(Object message)
throws com.google.gwt.user.client.rpc.SerializationException
- Throws:
com.google.gwt.user.client.rpc.SerializationException
Copyright © 2013. All Rights Reserved.