com.google.gwt.user.client.rpc.impl
Class RemoteServiceProxy

java.lang.Object
  extended by com.google.gwt.user.client.rpc.impl.RemoteServiceProxy
All Implemented Interfaces:
SerializationStreamFactory, ServiceDefTarget
Direct Known Subclasses:
RpcServiceProxy

public abstract class RemoteServiceProxy
extends java.lang.Object
implements SerializationStreamFactory, ServiceDefTarget

Superclass for client-side RemoteService proxies. For internal use only.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.rpc.ServiceDefTarget
ServiceDefTarget.NoServiceEntryPointSpecifiedException
 
Method Summary
static JavaScriptObject bytesStat(java.lang.String method, int count, int bytes, java.lang.String eventType)
           
 SerializationStreamReader createStreamReader(java.lang.String encoded)
          Returns a SerializationStreamReader that is ready for reading.
 SerializationStreamWriter createStreamWriter()
          Returns a SerializationStreamWriter that has had ClientSerializationStreamWriter.prepareToWrite() called on it and it has already had had the name of the remote service interface written as well.
 java.lang.String getSerializationPolicyName()
          Return the strong name of the serialization policy to be used with this RPC instance.
 java.lang.String getServiceEntryPoint()
          Gets the URL of a service implementation.
static boolean isStatsAvailable()
          Indicates if RPC statistics should be gathered.
 void setRpcRequestBuilder(RpcRequestBuilder builder)
          Sets the RpcRequestBuilder that should be used by the service implementation.
 void setServiceEntryPoint(java.lang.String url)
          Sets the URL of a service implementation.
static boolean stats(JavaScriptObject data)
          Always use this as isStatsAvailable() && stats(JavaScriptObject).
static JavaScriptObject timeStat(java.lang.String method, int count, java.lang.String eventType)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

bytesStat

public static JavaScriptObject bytesStat(java.lang.String method,
                                         int count,
                                         int bytes,
                                         java.lang.String eventType)

isStatsAvailable

public static boolean isStatsAvailable()
Indicates if RPC statistics should be gathered.


stats

public static boolean stats(JavaScriptObject data)
Always use this as isStatsAvailable() && stats(JavaScriptObject).


timeStat

public static JavaScriptObject timeStat(java.lang.String method,
                                        int count,
                                        java.lang.String eventType)

createStreamReader

public SerializationStreamReader createStreamReader(java.lang.String encoded)
                                             throws SerializationException
Returns a SerializationStreamReader that is ready for reading.

Specified by:
createStreamReader in interface SerializationStreamFactory
Parameters:
encoded - string that encodes the response of an RPC request
Returns:
SerializationStreamReader that is ready for reading
Throws:
SerializationException

createStreamWriter

public SerializationStreamWriter createStreamWriter()
Returns a SerializationStreamWriter that has had ClientSerializationStreamWriter.prepareToWrite() called on it and it has already had had the name of the remote service interface written as well.

Specified by:
createStreamWriter in interface SerializationStreamFactory
Returns:
SerializationStreamWriter that has had ClientSerializationStreamWriter.prepareToWrite() called on it and it has already had had the name of the remote service interface written as well

getSerializationPolicyName

public java.lang.String getSerializationPolicyName()
Description copied from interface: ServiceDefTarget
Return the strong name of the serialization policy to be used with this RPC instance.

Specified by:
getSerializationPolicyName in interface ServiceDefTarget

getServiceEntryPoint

public java.lang.String getServiceEntryPoint()
Description copied from interface: ServiceDefTarget
Gets the URL of a service implementation.

Specified by:
getServiceEntryPoint in interface ServiceDefTarget
Returns:
the last value passed to ServiceDefTarget.setServiceEntryPoint(String)
See Also:
ServiceDefTarget.getServiceEntryPoint()

setRpcRequestBuilder

public void setRpcRequestBuilder(RpcRequestBuilder builder)
Description copied from interface: ServiceDefTarget
Sets the RpcRequestBuilder that should be used by the service implementation. This method can be called if customized request behavior is desired. Calling this method with a null value will reset any custom behavior to the default implementation.

Specified by:
setRpcRequestBuilder in interface ServiceDefTarget

setServiceEntryPoint

public void setServiceEntryPoint(java.lang.String url)
Description copied from interface: ServiceDefTarget
Sets the URL of a service implementation.

Specified by:
setServiceEntryPoint in interface ServiceDefTarget
Parameters:
url - a URL that designates the service implementation to call
See Also:
ServiceDefTarget.setServiceEntryPoint(String)