org.restlet.client.engine.resource
Class GwtClientProxy

java.lang.Object
  extended by org.restlet.client.engine.resource.GwtClientProxy
All Implemented Interfaces:
SerializationStreamFactory, ClientProxy

public class GwtClientProxy
extends Object
implements ClientProxy, SerializationStreamFactory

Base class for resource proxies generated via deferred binding.

Author:
Jerome Louvel

Constructor Summary
GwtClientProxy()
          Default constructor.
GwtClientProxy(String uri)
          Constructor.
GwtClientProxy(String uri, String serializationPolicy, com.google.gwt.user.client.rpc.impl.Serializer serializer)
          Constructor.
 
Method Summary
 SerializationStreamReader createStreamReader(String encoded)
          Creates an object stream reader.
 SerializationStreamWriter createStreamWriter()
          Creates an object stream writer.
 ClientResource getClientResource()
          Returns the wrapped client resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GwtClientProxy

public GwtClientProxy()
Default constructor.


GwtClientProxy

public GwtClientProxy(String uri)
Constructor.

Parameters:
uri - The target resource URI.

GwtClientProxy

public GwtClientProxy(String uri,
                      String serializationPolicy,
                      com.google.gwt.user.client.rpc.impl.Serializer serializer)
Constructor.

Parameters:
uri - The target resource URI.
serializationPolicy - The location of the serialization policy.
serializer - The object serializer.
Method Detail

createStreamReader

public SerializationStreamReader createStreamReader(String encoded)
                                             throws SerializationException
Creates an object stream reader.

Specified by:
createStreamReader in interface SerializationStreamFactory
Parameters:
encoded - The encoded string to read.
Returns:
A new object stream reader.
Throws:
SerializationException

createStreamWriter

public SerializationStreamWriter createStreamWriter()
Creates an object stream writer.

Specified by:
createStreamWriter in interface SerializationStreamFactory
Returns:
A new object stream writer.

getClientResource

public ClientResource getClientResource()
Returns the wrapped client resource.

Specified by:
getClientResource in interface ClientProxy
Returns:
The wrapped client resource.


Copyright © 2005-2013 Restlet S.A.S..