com.sun.syndication.propono.atom.server
Class AtomHandlerFactory

java.lang.Object
  extended by com.sun.syndication.propono.atom.server.AtomHandlerFactory
Direct Known Subclasses:
FileBasedAtomHandlerFactory

public abstract class AtomHandlerFactory
extends Object

Defines a factory that enables the AtomServlet to obtain an 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 AtomHandler impementation.


Constructor Summary
protected AtomHandlerFactory()
           
 
Method Summary
abstract  AtomHandler newAtomHandler(HttpServletRequest req)
          Creates a new instance of a AtomHandler using the currently configured parameters.
static AtomHandlerFactory newInstance()
          Obtain a new instance of a AtomHandlerFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomHandlerFactory

protected AtomHandlerFactory()
Method Detail

newInstance

public static AtomHandlerFactory newInstance()
Obtain a new instance of a 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: Once an application has obtained a reference to a AtomHandlerFactory it can use the factory to configure and obtain parser instances.

Returns:
New instance of a AtomHandlerFactory
Throws:
FactoryConfigurationError - if the implementation is not available or cannot be instantiated.

newAtomHandler

public abstract AtomHandler newAtomHandler(HttpServletRequest req)
Creates a new instance of a AtomHandler using the currently configured parameters.

Returns:
A new instance of a AtomHandler.
Throws:
AtomConfigurationException - if a AtomHandler cannot be created which satisfies the configuration requested.