Example usage for com.google.gwt.user.client.rpc HasRpcToken setRpcToken

List of usage examples for com.google.gwt.user.client.rpc HasRpcToken setRpcToken

Introduction

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

Prototype

void setRpcToken(RpcToken token);

Source Link

Document

Sets the RpcToken to be included with each RPC call.

Usage

From source file:org.jboss.mjolnir.authentication.TokenServiceUtil.java

License:Open Source License

public static void add(final HasRpcToken remoteService) {
    if (token.equals(null)) {
        final Dictionary info = Dictionary.getDictionary("info");
        token = new XsrfToken(info.get("xsrf"));
    }/*from w  w  w .java 2s  .c  o m*/
    remoteService.setRpcToken(token);
}