Package org.apache.abdera.util
Class AbderaConfiguration
- java.lang.Object
-
- org.apache.abdera.util.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
-
-
Field Summary
-
Fields inherited from interface org.apache.abdera.util.Constants
ACCEPT, AID, ALTERNATE, APP_MEDIA_TYPE, APP_NS, APP_NS_PRE_RFC, APP_PREFIX, ATITLE, ATOM_MEDIA_TYPE, ATOM_NS, AURI, AUTHOR, BASE, CAT_MEDIA_TYPE, CATEGORIES, CATEGORY, CLASS, COLLECTION, CONFIG_FACTORY, CONFIG_PARSER, CONFIG_PARSERFACTORY, CONFIG_STREAMWRITER, CONFIG_WRITER, CONFIG_WRITERFACTORY, CONFIG_XPATH, CONTENT, CONTRIBUTOR, CONTROL, CONTROL_NS, CONTROL_PREFIX, DEFAULT_FACTORY, DEFAULT_PARSER, DEFAULT_PARSERFACTORY, DEFAULT_STREAMWRITER, DEFAULT_WRITER, DEFAULT_WRITERFACTORY, DEFAULT_XPATH, DIV, DRAFT, EDITED, EMAIL, ENTRY, ENTRY_MEDIA_TYPE, FEED, FEED_MEDIA_TYPE, FIXED, GENERATOR, HREF, HREFLANG, HTML, ICON, ID, LABEL, LANG, LENGTH, LINK, LN_ACCEPT, LN_ALTERNATE, LN_ALTERNATE_MULTIPART_RELATED, LN_AUTHOR, LN_BASE, LN_CATEGORIES, LN_CATEGORY, LN_CLASS, LN_COLLECTION, LN_CONTENT, LN_CONTRIBUTOR, LN_CONTROL, LN_DIV, LN_DRAFT, LN_EDITED, LN_EMAIL, LN_ENTRY, LN_FEED, LN_FIXED, LN_GENERATOR, LN_HREF, LN_HREFLANG, LN_ICON, LN_ID, LN_LABEL, LN_LANG, LN_LENGTH, LN_LINK, LN_LOGO, LN_NAME, LN_PUBLISHED, LN_REL, LN_RIGHTS, LN_SCHEME, LN_SERVICE, LN_SOURCE, LN_SPACE, LN_SRC, LN_SUBTITLE, LN_SUMMARY, LN_TERM, LN_TITLE, LN_TYPE, LN_UPDATED, LN_URI, LN_VERSION, LN_WORKSPACE, LOGO, MULTIPART_RELATED_TYPE, NAME, NAMED_PARSER, NAMED_WRITER, NO, PRE_RFC_ACCEPT, PRE_RFC_CATEGORIES, PRE_RFC_COLLECTION, PRE_RFC_CONTROL, PRE_RFC_DRAFT, PRE_RFC_EDITED, PRE_RFC_SERVICE, PRE_RFC_WORKSPACE, PREFIX, PREFIXED_TITLE, PUBLISHED, REL, RIGHTS, SCHEME, SERVICE, SOURCE, SPACE, SRC, STREAM_WRITER, SUBTITLE, SUMMARY, TERM, TEXT, TITLE, TYPE, UPDATED, URI, VERSION, WORKSPACE, XHTML, XHTML_NS, XML, XML_MEDIA_TYPE, XML_NS, YES
-
-
Constructor Summary
Constructors Constructor Description AbderaConfiguration()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AbderaConfiguration
addExtensionFactory(ExtensionFactory factory)
Deprecated.Registers an ExtensionFactory implementation.AbderaConfiguration
addNamedParser(NamedParser parser)
Deprecated.Registers a NamedParser implementationAbderaConfiguration
addNamedWriter(NamedWriter writer)
Deprecated.Registers a NamedWriter implementationAbderaConfiguration
addStreamWriter(java.lang.Class<? extends StreamWriter> sw)
Deprecated.Registers a StreamWriter implementationjava.lang.Object
clone()
Deprecated.java.lang.String
getConfigurationOption(java.lang.String id)
Deprecated.Retrieve the value of the specified configuration optionjava.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 nullstatic Configuration
getDefault()
Deprecated.Returns the default configuration.java.util.List<ExtensionFactory>
getExtensionFactories()
Deprecated.Returns the listing of registered ExtensionFactory implementationsjava.util.Map<java.lang.String,NamedParser>
getNamedParsers()
Deprecated.Returns the collection of Named Parsersjava.util.Map<java.lang.String,NamedWriter>
getNamedWriters()
Deprecated.Returns the collection of NamedWritersjava.util.Map<java.lang.String,java.lang.Class<? extends StreamWriter>>
getStreamWriters()
Deprecated.Returns the collection of NamedWritersFactory
newFactoryInstance(Abdera abdera)
Deprecated.Return a new instance of org.apache.abdera.factory.FactoryParserFactory
newParserFactoryInstance(Abdera abdera)
Deprecated.Return a new instance of org.apache.abdera.parser.ParserFactoryParser
newParserInstance(Abdera abdera)
Deprecated.Return a new instance of org.apache.abdera.parser.ParserStreamWriter
newStreamWriterInstance(Abdera abdera)
Deprecated.Return a new instance of the default org.apache.abdera.writer.WriterWriterFactory
newWriterFactoryInstance(Abdera abdera)
Deprecated.Return a new instance of org.apache.abdera.writer.WriterFactoryWriter
newWriterInstance(Abdera abdera)
Deprecated.Return a new instance of the default org.apache.abdera.writer.WriterXPath
newXPathInstance(Abdera abdera)
Deprecated.Return a new instance of org.apache.abdera.xpath.XPath
-
-
-
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 interfaceConfiguration
- 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 interfaceConfiguration
- Returns:
- The configuration option value of _default
-
addExtensionFactory
public AbderaConfiguration addExtensionFactory(ExtensionFactory factory)
Deprecated.Registers an ExtensionFactory implementation.- Specified by:
addExtensionFactory
in interfaceConfiguration
- Parameters:
factory
- is the new ExtensionFactory to add- Returns:
- the instance of the configuration class
-
getExtensionFactories
public java.util.List<ExtensionFactory> getExtensionFactories()
Deprecated.Returns the listing of registered ExtensionFactory implementations- Specified by:
getExtensionFactories
in interfaceConfiguration
-
addNamedWriter
public AbderaConfiguration addNamedWriter(NamedWriter writer)
Deprecated.Registers a NamedWriter implementation- Specified by:
addNamedWriter
in interfaceConfiguration
- 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 interfaceConfiguration
-
getStreamWriters
public java.util.Map<java.lang.String,java.lang.Class<? extends StreamWriter>> getStreamWriters()
Deprecated.Returns the collection of NamedWriters- Specified by:
getStreamWriters
in interfaceConfiguration
-
addNamedParser
public AbderaConfiguration addNamedParser(NamedParser parser)
Deprecated.Registers a NamedParser implementation- Specified by:
addNamedParser
in interfaceConfiguration
- 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 interfaceConfiguration
- 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 interfaceConfiguration
-
clone
public java.lang.Object clone()
Deprecated.- Specified by:
clone
in interfaceConfiguration
-
newFactoryInstance
public Factory newFactoryInstance(Abdera abdera)
Deprecated.Return a new instance of org.apache.abdera.factory.Factory- Specified by:
newFactoryInstance
in interfaceConfiguration
- 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 interfaceConfiguration
- 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 interfaceConfiguration
- Returns:
- A new XPath instance
-
newParserFactoryInstance
public ParserFactory newParserFactoryInstance(Abdera abdera)
Deprecated.Return a new instance of org.apache.abdera.parser.ParserFactory- Specified by:
newParserFactoryInstance
in interfaceConfiguration
- Returns:
- A new ParserFactory instance
-
newWriterFactoryInstance
public WriterFactory newWriterFactoryInstance(Abdera abdera)
Deprecated.Return a new instance of org.apache.abdera.writer.WriterFactory- Specified by:
newWriterFactoryInstance
in interfaceConfiguration
- Returns:
- A new WriterFactory instance
-
newWriterInstance
public Writer newWriterInstance(Abdera abdera)
Deprecated.Return a new instance of the default org.apache.abdera.writer.Writer- Specified by:
newWriterInstance
in interfaceConfiguration
- 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 interfaceConfiguration
- Returns:
- A new default writer implementation instance
-
-