@Deprecated public abstract class AtomHandlerFactory extends Object
com.rometools.rome.propono.atom.server.AtomServlet to
obtain an com.rometools.rome.propono.atom.server.AtomHandler that handles an Atom
request.
To create your own Atom protocol implementation you must sub-class this class with your own
factory that is capable of creating instances of your
com.rometools.rome.propono.atom.server.AtomHandler impementation.
| Modifier | Constructor and Description |
|---|---|
protected |
AtomHandlerFactory()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AtomHandler |
newAtomHandler(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Deprecated.
Creates a new instance of a
com.rometools.rome.propono.atom.server.AtomHandler using
the currently configured parameters. |
static AtomHandlerFactory |
newInstance()
Deprecated.
Obtain a new instance of a
AtomHandlerFactory. |
public static AtomHandlerFactory newInstance()
AtomHandlerFactory. This static method creates a new
factory instance. This method uses the following ordered lookup procedure to determine the
AtomHandlerFactory implementation class to load:
com.rometools.rome.propono.atom.server.AtomHandlerFactory system
property.java.util.Properties format and contains the fully qualified name of
the implementation class with the key being the system property defined above.
The propono.properties file is read only once by Propono and it's values are then cached for
future use. If the file does not exist when the first attempt is made to read from it, no
further attempts are made to check for its existence. It is not possible to change the value
of any property in propono.properties after it has been read for the first time.META-INF/services/com.rometools.rome.AtomHandlerFactory in jars
available to the runtime.AtomHandlerFactory instance.AtomHandlerFactory it can use
the factory to configure and obtain parser instances.AtomHandlerFactoryFactoryConfigurationError - if the implementation is not available or cannot be
instantiated.public abstract AtomHandler newAtomHandler(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
com.rometools.rome.propono.atom.server.AtomHandler using
the currently configured parameters.AtomConfigurationException - if a AtomHandler cannot be created which satisfies the
configuration requested.Copyright © 2023. All rights reserved.