Package com.google.gwt.user.client.rpc
Interface ServiceDefTarget
-
public interface ServiceDefTargetAn interface implemented by client-side RPC proxy objects. Cast the object returned fromGWT.create(Class)on aRemoteServiceto this interface to initialize the target URL for the remote service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classServiceDefTarget.NoServiceEntryPointSpecifiedExceptionThis exception is thrown when a service is invoked withoutsetServiceEntryPoint(String)having been called.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetSerializationPolicyName()Return the strong name of the serialization policy to be used with this RPC instance.java.lang.StringgetServiceEntryPoint()Gets the URL of a service implementation.voidsetRpcRequestBuilder(RpcRequestBuilder builder)Sets the RpcRequestBuilder that should be used by the service implementation.voidsetServiceEntryPoint(java.lang.String address)Sets the URL of a service implementation.
-
-
-
Method Detail
-
getSerializationPolicyName
java.lang.String getSerializationPolicyName()
Return the strong name of the serialization policy to be used with this RPC instance.
-
getServiceEntryPoint
java.lang.String getServiceEntryPoint()
Gets the URL of a service implementation.- Returns:
- the last value passed to
setServiceEntryPoint(String)
-
setRpcRequestBuilder
void setRpcRequestBuilder(RpcRequestBuilder builder)
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.
-
setServiceEntryPoint
void setServiceEntryPoint(java.lang.String address)
Sets the URL of a service implementation.- Parameters:
address- a URL that designates the service implementation to call
-
-