Package com.google.api.gwt.samples.urlshortener.shared

Examples of com.google.api.gwt.samples.urlshortener.shared.Url


    // Get a new RequestContext which we will execute.
    UrlContext urlContext = urlShortener.url();

    // Create a new Url instance with the longUrl we want to insert.
    Url url = urlContext.create(Url.class).setLongUrl(longUrl);

    // Fire an insert() request with the Url to insert.
    urlContext.insert(url).fire(new Receiver<Url>() {
      @Override
      public void onSuccess(Url response) {
View Full Code Here

TOP

Related Classes of com.google.api.gwt.samples.urlshortener.shared.Url

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.