Class Abdera


  • @Deprecated(since="2021-07-29")
    public class Abdera
    extends java.lang.Object
    Deprecated.
    This API is deprecated as Apache Abdera is a retired project since 2017.
    The top level entry point for Abdera that provides access to various subcomponents. Upon creation, this class will attempt to create singleton instances of each of the various subcomponents components. These instances may be retrieved using the appropriate get___ methods. Alternatively, new instances may be created using the appropriate new___ methods. Instances of the Abdera object, and it's direct children (Parser, Factory, XPath, etc) are Threadsafe. Because of the dynamic configuration model Abdera uses, creating a new instance of the Abdera object can be time consuming. It is, therefore, a good idea for applications to create only a single static instance of the Abdera object (see the Abdera.getInstance() method). Abdera's configuration model depends heavily on the context classloader. Extension Factories, custom writers, custom parsers, etc are all discovered automatically by searching the classpath. This means that care needs to be taken when using Abdera in environments that utilize multiple classloaders (such as Web application servers).
    • Constructor Detail

      • Abdera

        public Abdera()
        Deprecated.
        Initialize using the default Abdera Configuration
      • Abdera

        public Abdera​(Configuration config)
        Deprecated.
        Initialize using the specified Abdera Configuration
        Parameters:
        config - The Abdera Configuration to use
    • Method Detail

      • getInstance

        public static Abdera getInstance()
        Deprecated.
        Get a static instance of the Abdera object.
      • newFeed

        public Feed newFeed()
        Deprecated.
        Create a new Feed instance. This is a convenience shortcut for abdera.getFactory().newFeed()
        Returns:
        A newly created feed element
      • newEntry

        public Entry newEntry()
        Deprecated.
        Create a new Entry instance. This is a convenience shortcut for abdera.getFactory().newEntry()
        Returns:
        A newly created entry element
      • newService

        public Service newService()
        Deprecated.
        Create a new Service instance. This is a convenience shortcut for abdera.getFactory().newService()
        Returns:
        A newly created service element
      • newCategories

        public Categories newCategories()
        Deprecated.
        Create a new Categories instance. This is a convenience shortcut for abdera.getFactory().newCategories()
        Returns:
        A newly created categories element
      • getConfiguration

        public Configuration getConfiguration()
        Deprecated.
        Return the Abdera Configuration used to initialize this instance
        Returns:
        The Abdera configuration
      • getFactory

        public Factory getFactory()
        Deprecated.
        Return the singleton instance of org.apache.abdera.factory.Factory
        Returns:
        The factory instance
      • getParser

        public Parser getParser()
        Deprecated.
        Return the singleton instance of org.apache.abdera.parser.Parser
        Returns:
        The parser instance
      • getXPath

        public XPath getXPath()
        Deprecated.
        Return the singleton instance of org.apache.abdera.xpath.XPath
        Returns:
        The XPath instance
      • getParserFactory

        public ParserFactory getParserFactory()
        Deprecated.
        Return the singleton instance of org.apache.abdera.parser.ParserFactory. The Parser Factory is used to acquire alternative parser implementation instances.
        Returns:
        The ParserFactory instance
      • getWriterFactory

        public WriterFactory getWriterFactory()
        Deprecated.
        Return the singleton instance of org.apache.abdera.writer.WriterFactory. The Writer Factory is used to acquire alternative writer implementation instances.
        Returns:
        The WriterFactory instance
      • getWriter

        public Writer getWriter()
        Deprecated.
        Return the singleton instance of the default org.apache.abdera.writer.Writer implementation.
        Returns:
        The default writer implementation
      • newStreamWriter

        public StreamWriter newStreamWriter()
        Deprecated.
        Return a new instance of the default org.apache.abdera.writer.Writer
        Returns:
        A new default writer implementation instance
      • getNewFactory

        public static Factory getNewFactory()
        Deprecated.
        Return a new Factory instance using a non-shared Abdera object
        Returns:
        A new factory instance
      • getNewParser

        public static Parser getNewParser()
        Deprecated.
        Return a new Parser instance using a non-shared Abdera object
        Returns:
        A new parser instance
      • getNewXPath

        public static XPath getNewXPath()
        Deprecated.
        Return a new XPath instance using a non-shared Abdera object
        Returns:
        A new XPath instance
      • getNewParserFactory

        public static ParserFactory getNewParserFactory()
        Deprecated.
        Return a new ParserFactory instance using a non-shared Abdera object
        Returns:
        A new ParserFactory instance
      • getNewWriterFactory

        public static WriterFactory getNewWriterFactory()
        Deprecated.
        Return a new WriterFactory instance using a non-shared Abdera object
        Returns:
        A new WriterFactory instance
      • getNewWriter

        public static Writer getNewWriter()
        Deprecated.
        Return a new instance of the default Writer using a non-shared Abdera object
        Returns:
        A new default writer implementation instance
      • getNewStreamWriter

        public static StreamWriter getNewStreamWriter()
        Deprecated.
        Return a new instance of the default StreamWriter using a non-shared Abdera object
        Returns:
        A new default stream writer implementation instance