Example usage for com.google.gwt.user.client.rpc ServiceDefTarget getSerializationPolicyName

List of usage examples for com.google.gwt.user.client.rpc ServiceDefTarget getSerializationPolicyName

Introduction

In this page you can find the example usage for com.google.gwt.user.client.rpc ServiceDefTarget getSerializationPolicyName.

Prototype

String getSerializationPolicyName();

Source Link

Document

Return the strong name of the serialization policy to be used with this RPC instance.

Usage

From source file:com.github.manishahluwalia.gwt.rpcwrapper.client.RpcWrapper.java

License:Apache License

/**
 * Given a basic GWT-RPC proxy service, wrap it to have the qualities of
 * {@link RpcWrapper}/*www . ja  v a 2  s .  c  o m*/
 *
 * @param service
 *            A GWT-RPC proxy. Usually, acquired through
 *            {@link GWT#create(Class)}
 * @return A wrapped GWT-RPC proxy
 */
public ServiceDefTarget wrapService(ServiceDefTarget service) {
    logger.finest("Wrapping service: " + service.getClass().getName() + " at " + service.getServiceEntryPoint()
            + " with policy " + service.getSerializationPolicyName());
    service.setRpcRequestBuilder(builder);
    return service;
}