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

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

Introduction

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

Prototype

MethodType DELETE

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

Click Source Link

Usage

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

License:Apache License

public void deleteLocation(Location location, ResponseReceivedHandler<Object> callback) {
    String url = servletUrl + "?key=" + location.getKey();
    RequestOptions params = RequestOptions.newInstance();
    params.setMethodType(MethodType.DELETE).setAuthorizationType(AuthorizationType.SIGNED);
    io.makeRequest(url, callback, params);
}