org.atmosphere.gwt20.server
Class GwtRpcUtil

java.lang.Object
  extended by org.atmosphere.gwt20.server.GwtRpcUtil
All Implemented Interfaces:
ServerSerializerProvider

public class GwtRpcUtil
extends Object
implements ServerSerializerProvider

Author:
p.havelaar

Field Summary
static String SERIALIZER_PROVIDER_NAME
           
 
Constructor Summary
GwtRpcUtil()
           
 
Method Summary
static Object deserialize(String data)
           
 String getName()
           
static com.google.gwt.user.server.rpc.SerializationPolicy getSerializationPolicy()
           
static com.google.gwt.user.server.rpc.SerializationPolicyProvider getSerializationPolicyProvider()
           
 ServerSerializer getServerSerializer()
           
static String readerToString(BufferedReader r)
           
static String serialize(Object message)
           
static String streamToString(InputStream in, String charset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERIALIZER_PROVIDER_NAME

public static final String SERIALIZER_PROVIDER_NAME
See Also:
Constant Field Values
Constructor Detail

GwtRpcUtil

public GwtRpcUtil()
Method Detail

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.