Package com.google.gdata.data.webmastertools

Examples of com.google.gdata.data.webmastertools.SitemapsFeed


    System.out.println("Printing user's Sitemaps:");
    try {
      String siteId = URLEncoder.encode(siteUrl, "UTF-8");
      // Request the feed
      URL feedUrl = getSitemapsFeedUrl(siteUrl);
      SitemapsFeed resultFeed = myService.getFeed(feedUrl, SitemapsFeed.class);

      // Print the results   
      for(SitemapsEntry entry : resultFeed.getEntries()) {
        System.out.println("\t" + entry.getTitle().getPlainText());
      }
    } catch (MalformedURLException e) {
      throw new IOException("URL for site URL is malformed.");
    }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.webmastertools.SitemapsFeed

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.