Search in sources :

Example 1 with XsrfTokenServiceAsync

use of com.google.gwt.user.client.rpc.XsrfTokenServiceAsync in project ovirt-engine by oVirt.

the class BaseSystemModule method getXsrfTokenService.

@Provides
@Singleton
public XsrfTokenServiceAsync getXsrfTokenService() {
    XsrfTokenServiceAsync service = GWT.create(XsrfTokenService.class);
    ((ServiceDefTarget) service).setServiceEntryPoint(GWT.getModuleBaseURL() + XsrfRpcRequestBuilder.XSRF_PATH);
    return service;
}
Also used : XsrfTokenServiceAsync(com.google.gwt.user.client.rpc.XsrfTokenServiceAsync) ServiceDefTarget(com.google.gwt.user.client.rpc.ServiceDefTarget) Singleton(com.google.inject.Singleton) Provides(com.google.inject.Provides)

Aggregations

ServiceDefTarget (com.google.gwt.user.client.rpc.ServiceDefTarget)1 XsrfTokenServiceAsync (com.google.gwt.user.client.rpc.XsrfTokenServiceAsync)1 Provides (com.google.inject.Provides)1 Singleton (com.google.inject.Singleton)1