Interface FeedBlock

    • Method Detail

      • getFeedURL

        java.lang.String getFeedURL()
        Get the URL of the XML feed this block will aggregate.
        Returns:
        the URL of the XML feed this block aggregates
      • setFeedURL

        void setFeedURL​(java.lang.String feedURL)
        Set the URL of the XML feed this block will aggregate.
        Parameters:
        feedURL - the URL of an XML feed
      • getFeed

        java.lang.String getFeed()
        Returns:
        Fetches the feed from the URL. Will return null if feedURL is empty or it can't connect to given URL. Returns null if the fetched contents were not valid XML. Will strip any XML declarations, doctypes etc.
      • getFeedAsXMLElement

        org.jdom.Element getFeedAsXMLElement()
                                      throws java.lang.Exception
        Fetches the feed from the URL as XML element instead of String. The returned Element will always be system-xml element containing the actual XML as its children.
        Returns:
        Throws:
        java.lang.Exception