Example usage for com.google.gwt.gadgets.client.io RequestOptions setAuthorizationType

List of usage examples for com.google.gwt.gadgets.client.io RequestOptions setAuthorizationType

Introduction

In this page you can find the example usage for com.google.gwt.gadgets.client.io RequestOptions setAuthorizationType.

Prototype

public final native RequestOptions setAuthorizationType(AuthorizationType authorizationType) ;

Source Link

Document

Sets the authorization method.

Usage

From source file:com.google.gwt.gadgets.sample.traveler.client.TravelerServletClient.java

License:Apache License

public void saveLocation(Location location, ResponseReceivedHandler<Object> callback) {
    RequestOptions params = RequestOptions.newInstance();
    params.setMethodType(MethodType.POST).setPostData(io.encodeValues(location));
    params.setAuthorizationType(AuthorizationType.SIGNED);
    io.makeRequest(servletUrl, callback, params);
}