java.lang.Object | +--com.ibm.commerce.adapter.DeviceFormatManager
Reserved for IBM internal use. This is an internal class responsible for initialization of all HTTP device format adapters and for returning the correct adapter to handle an incoming HTTP request.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM Copyright notice field. |
Constructor Summary | |
---|---|
DeviceFormatManager() Reserved for IBM internal use. |
Method Summary | |
---|---|
protected
void |
addAdapterFactory(java.lang.String name,
HttpAdapterFactory factory) Reserved for IBM internal use. |
void |
addAdapterFactoryNode(java.lang.String name,
org.w3c.dom.Element node) Reserved for IBM internal use. |
boolean |
deviceEnabled() Reserved for IBM internal use. |
HttpAdapterFactory |
getAdapterFactory(java.lang.String name) Reserved for IBM internal use. |
HttpAdapter |
getDeviceFormatAdapter(HttpServletRequest req,
HttpServletResponse resp) Reserved for IBM internal use. |
void |
initialize() Reserved for IBM internal use. |
void |
initializeAdapterFactory(org.w3c.dom.Element node) Reserved for IBM internal use. |
static
DeviceFormatManager |
singleton() Reserved for IBM internal use. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public DeviceFormatManager()
Method Detail |
---|
protected void addAdapterFactory(java.lang.String name, HttpAdapterFactory factory)
name
- the name of the adapter.factory
- the adapter factory.public void addAdapterFactoryNode(java.lang.String name, org.w3c.dom.Element node)
name
- the name of adapter.node
- a DOM node that describes this new
adapter.public boolean deviceEnabled()
public HttpAdapterFactory getAdapterFactory(java.lang.String name)
name
- the adapter name.public HttpAdapter getDeviceFormatAdapter(HttpServletRequest req, HttpServletResponse resp) throws ECException
req
- the HTTP request to be handled.ECException
public void initialize() throws java.lang.Exception
java.lang.Exception
- if an problem occurs durning
initialization.public void initializeAdapterFactory(org.w3c.dom.Element node) throws java.lang.Exception
node
- the XML node that contains the adapter's
configuration.java.lang.Exception
- if there was a problem with the adapter
initialization.public static DeviceFormatManager singleton()