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 AbderaConfigurationaddExtensionFactory(ExtensionFactory factory)Deprecated.Registers an ExtensionFactory implementation.AbderaConfigurationaddNamedParser(NamedParser parser)Deprecated.Registers a NamedParser implementationAbderaConfigurationaddNamedWriter(NamedWriter writer)Deprecated.Registers a NamedWriter implementationAbderaConfigurationaddStreamWriter(java.lang.Class<? extends StreamWriter> sw)Deprecated.Registers a StreamWriter implementationjava.lang.Objectclone()Deprecated.java.lang.StringgetConfigurationOption(java.lang.String id)Deprecated.Retrieve the value of the specified configuration optionjava.lang.StringgetConfigurationOption(java.lang.String id, java.lang.String _default)Deprecated.Retrieve the value of the specified configuration option or _default if the value is nullstatic ConfigurationgetDefault()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 NamedWritersFactorynewFactoryInstance(Abdera abdera)Deprecated.Return a new instance of org.apache.abdera.factory.FactoryParserFactorynewParserFactoryInstance(Abdera abdera)Deprecated.Return a new instance of org.apache.abdera.parser.ParserFactoryParsernewParserInstance(Abdera abdera)Deprecated.Return a new instance of org.apache.abdera.parser.ParserStreamWriternewStreamWriterInstance(Abdera abdera)Deprecated.Return a new instance of the default org.apache.abdera.writer.WriterWriterFactorynewWriterFactoryInstance(Abdera abdera)Deprecated.Return a new instance of org.apache.abdera.writer.WriterFactoryWriternewWriterInstance(Abdera abdera)Deprecated.Return a new instance of the default org.apache.abdera.writer.WriterXPathnewXPathInstance(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:
getConfigurationOptionin 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:
getConfigurationOptionin interfaceConfiguration- Returns:
- The configuration option value of _default
-
addExtensionFactory
public AbderaConfiguration addExtensionFactory(ExtensionFactory factory)
Deprecated.Registers an ExtensionFactory implementation.- Specified by:
addExtensionFactoryin 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:
getExtensionFactoriesin interfaceConfiguration
-
addNamedWriter
public AbderaConfiguration addNamedWriter(NamedWriter writer)
Deprecated.Registers a NamedWriter implementation- Specified by:
addNamedWriterin 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:
getNamedWritersin interfaceConfiguration
-
getStreamWriters
public java.util.Map<java.lang.String,java.lang.Class<? extends StreamWriter>> getStreamWriters()
Deprecated.Returns the collection of NamedWriters- Specified by:
getStreamWritersin interfaceConfiguration
-
addNamedParser
public AbderaConfiguration addNamedParser(NamedParser parser)
Deprecated.Registers a NamedParser implementation- Specified by:
addNamedParserin 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:
addStreamWriterin 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:
getNamedParsersin interfaceConfiguration
-
clone
public java.lang.Object clone()
Deprecated.- Specified by:
clonein interfaceConfiguration
-
newFactoryInstance
public Factory newFactoryInstance(Abdera abdera)
Deprecated.Return a new instance of org.apache.abdera.factory.Factory- Specified by:
newFactoryInstancein 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:
newParserInstancein 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:
newXPathInstancein 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:
newParserFactoryInstancein 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:
newWriterFactoryInstancein 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:
newWriterInstancein 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:
newStreamWriterInstancein interfaceConfiguration- Returns:
- A new default writer implementation instance
-
-