Class AbderaConfiguration

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Configuration, Constants

    @Deprecated(since="2021-07-29")
    public final class AbderaConfiguration
    extends java.lang.Object
    implements Constants, Configuration
    Deprecated.
    This API is deprecated as Apache Abdera is a retired project since 2017.
    Provides the basic configuration for the Abdera default implementation. This class should not be accessed by applications directly without very good reason.
    See Also:
    Serialized Form
    • Constructor Detail

      • AbderaConfiguration

        public AbderaConfiguration()
        Deprecated.
    • Method Detail

      • getDefault

        public static Configuration getDefault()
        Deprecated.
        Returns the default configuration. Every call to this method returns a new AbderaConfiguration instance using abdera.properties
      • getConfigurationOption

        public java.lang.String getConfigurationOption​(java.lang.String id)
        Deprecated.
        Retrieve the value of the specified configuration option
        Specified by:
        getConfigurationOption in interface Configuration
        Returns:
        The configuration option value or null
      • getConfigurationOption

        public java.lang.String getConfigurationOption​(java.lang.String id,
                                                       java.lang.String _default)
        Deprecated.
        Retrieve the value of the specified configuration option or _default if the value is null
        Specified by:
        getConfigurationOption in interface Configuration
        Returns:
        The configuration option value of _default
      • addNamedWriter

        public AbderaConfiguration addNamedWriter​(NamedWriter writer)
        Deprecated.
        Registers a NamedWriter implementation
        Specified by:
        addNamedWriter in interface Configuration
        Parameters:
        writer - is the new NamedWriter to add
        Returns:
        the instance of the configuration class
      • getNamedWriters

        public java.util.Map<java.lang.String,​NamedWriter> getNamedWriters()
        Deprecated.
        Returns the collection of NamedWriters
        Specified by:
        getNamedWriters in interface Configuration
      • getStreamWriters

        public java.util.Map<java.lang.String,​java.lang.Class<? extends StreamWriter>> getStreamWriters()
        Deprecated.
        Returns the collection of NamedWriters
        Specified by:
        getStreamWriters in interface Configuration
      • addNamedParser

        public AbderaConfiguration addNamedParser​(NamedParser parser)
        Deprecated.
        Registers a NamedParser implementation
        Specified by:
        addNamedParser in interface Configuration
        Parameters:
        parser - is the new NamedParser to add
        Returns:
        the instance of the configuration class
      • addStreamWriter

        public AbderaConfiguration addStreamWriter​(java.lang.Class<? extends StreamWriter> sw)
        Deprecated.
        Registers a StreamWriter implementation
        Specified by:
        addStreamWriter in interface Configuration
        Parameters:
        sw - is the new StreamWriter to add
        Returns:
        the instance of the configuration class
      • getNamedParsers

        public java.util.Map<java.lang.String,​NamedParser> getNamedParsers()
        Deprecated.
        Returns the collection of Named Parsers
        Specified by:
        getNamedParsers in interface Configuration
      • clone

        public java.lang.Object clone()
        Deprecated.
        Specified by:
        clone in interface Configuration
      • newFactoryInstance

        public Factory newFactoryInstance​(Abdera abdera)
        Deprecated.
        Return a new instance of org.apache.abdera.factory.Factory
        Specified by:
        newFactoryInstance in interface Configuration
        Returns:
        A new factory instance
      • newParserInstance

        public Parser newParserInstance​(Abdera abdera)
        Deprecated.
        Return a new instance of org.apache.abdera.parser.Parser
        Specified by:
        newParserInstance in interface Configuration
        Returns:
        A new parser instance
      • newXPathInstance

        public XPath newXPathInstance​(Abdera abdera)
        Deprecated.
        Return a new instance of org.apache.abdera.xpath.XPath
        Specified by:
        newXPathInstance in interface Configuration
        Returns:
        A new XPath instance
      • newWriterInstance

        public Writer newWriterInstance​(Abdera abdera)
        Deprecated.
        Return a new instance of the default org.apache.abdera.writer.Writer
        Specified by:
        newWriterInstance in interface Configuration
        Returns:
        A new default writer implementation instance
      • newStreamWriterInstance

        public StreamWriter newStreamWriterInstance​(Abdera abdera)
        Deprecated.
        Return a new instance of the default org.apache.abdera.writer.Writer
        Specified by:
        newStreamWriterInstance in interface Configuration
        Returns:
        A new default writer implementation instance