Package com.google.gdata.data.sites

Examples of com.google.gdata.data.sites.SiteFeed


  /**
   * Declare the extensions of the feeds for the Google Sites Data API.
   */
  private void declareExtensions() {
    new AclFeed().declareExtensions(extProfile);
    new SiteFeed().declareExtensions(extProfile);
    /* Declarations for extensions that need to be handled as specific type
     * should be done before call to {@see ExtensionProfile#setAutoExtending}.
     * Order of declaration is important. */
    extProfile.setAutoExtending(true);
    new ActivityFeed().declareExtensions(extProfile);
View Full Code Here


    /**
     * Fetches and displays the user's site feed.
     */
    public void getSiteFeed() throws IOException, ServiceException {
      SiteFeed siteFeed = service.getFeed(
          new URL(getSiteFeedUrl()), SiteFeed.class);
      for (SiteEntry entry : siteFeed.getEntries()){
        System.out.println("title: " + entry.getTitle().getPlainText());
        System.out.println("site name: " + entry.getSiteName().getValue());
        System.out.println("theme: " + entry.getTheme().getValue());
        System.out.println("");
      }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.sites.SiteFeed

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.