|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.adapter.DeviceFormatManager
This is an internal class responsible for initialization of all device format adapters and for returning the correct adapter to handle an incoming request
Constructor Summary | |
DeviceFormatManager()
HttpDeviceFormatManager constructor. |
Method Summary | |
protected void |
addAdapterFactory(java.lang.String name,
HttpAdapterFactory factory)
This methods adds a new adapter factory to the list of adapters to be handled |
void |
addAdapterFactoryNode(java.lang.String name,
com.ibm.commerce.adapter.Element node)
This methods handle the adding of a new adapter factory node to the list of adapters to be handled. |
boolean |
deviceEnabled()
Returns true if this device format adapter is enabled. |
HttpAdapterFactory |
getAdapterFactory(java.lang.String name)
Returns the factory for an adapter given a adapter name. |
HttpAdapter |
getDeviceFormatAdapter(com.ibm.commerce.adapter.HttpServletRequest req,
com.ibm.commerce.adapter.HttpServletResponse resp)
Returns an instance of an adapter that will handle this request. |
void |
initialize()
This method initialize the HttpDeviceFormatAdapter. |
void |
initializeAdapterFactory(com.ibm.commerce.adapter.Element node)
This method initialized an adapter factory based on dom node that defines an adapter. |
static DeviceFormatManager |
singleton()
Returns a singleton object of a DeviceFormatManager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DeviceFormatManager()
Method Detail |
protected void addAdapterFactory(java.lang.String name, HttpAdapterFactory factory)
public void addAdapterFactoryNode(java.lang.String name, com.ibm.commerce.adapter.Element node)
name
- String - name of adapternode
- Element - a dom node that describes this new adapterpublic boolean deviceEnabled()
public HttpAdapterFactory getAdapterFactory(java.lang.String name)
public HttpAdapter getDeviceFormatAdapter(com.ibm.commerce.adapter.HttpServletRequest req, com.ibm.commerce.adapter.HttpServletResponse resp) throws ECException
req
- HttpServletRequest - the request to be handledres
- HttpServletResponse - the response objectpublic void initialize() throws java.lang.Exception
java.lang.Exception
- The exception description.public void initializeAdapterFactory(com.ibm.commerce.adapter.Element node) throws java.lang.Exception
node
- Elementpublic static DeviceFormatManager singleton()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |