Example usage for com.google.gwt.gadgets.client.io MethodType POST

List of usage examples for com.google.gwt.gadgets.client.io MethodType POST

Introduction

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

Prototype

MethodType POST

To view the source code for com.google.gwt.gadgets.client.io MethodType POST.

Click Source Link

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);
}