List of usage examples for com.google.gwt.user.client.rpc HasRpcToken setRpcToken
void setRpcToken(RpcToken token);
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); }