|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.adapter.AbstractHttpAdapter | +--com.ibm.commerce.browseradapter.HttpBrowserAdapter
HttpBrowserAdapter is the device format adapter that is responsible for handling http requests that comes from a browser.
Fields inherited from class com.ibm.commerce.adapter.AbstractHttpAdapter |
desc, req, reqObj, requestProperties, resp, sessionContext |
Fields inherited from interface com.ibm.commerce.adapter.HttpAdapter |
COPYRIGHT, DEVFMTID_BROWSER, DEVFMTNAME_BROWSER, DEVFMTNAME_IMODE, DEVFMTTYP_BROWSER, DEVFMTTYP_PVCDEVICE, DEVFMTTYP_XMLFMT, DEVFMTTYPID_BROWSER, DEVFMTTYPID_PVC, DEVFMTTYPID_XML |
Fields inherited from interface com.ibm.commerce.adapter.HttpAdapterFactory |
COPYRIGHT |
Constructor Summary | |
HttpBrowserAdapter()
HttpDeviceBrowser default constructor. |
Method Summary | |
boolean |
checkDeviceFormat(com.ibm.commerce.browseradapter.HttpServletRequest req,
TypedProperty prop)
This method checks whether the request can be handled by this adapter. |
HttpAdapter |
createAdapter(com.ibm.commerce.browseradapter.HttpServletRequest _req,
com.ibm.commerce.browseradapter.HttpServletResponse _resp,
TypedProperty _prop)
This method returns an instance of the adapter if the request has the correct format |
HttpSessionContext |
createSessionContext()
Creates an HttpSessionContext for the browser. |
boolean |
getCacheObjectID(CommandContext commandContext,
com.ibm.commerce.browseradapter.CacheObjectID aCacheObjectID,
TypedProperty parm)
Returns true if current request can be cached. |
java.lang.String |
getDocumentPathName(java.lang.String name)
Gets the actual output document name based on a base document name. |
SessionContext |
getSessionContext()
Gets the session context. |
boolean |
httpsRedirection()
Returns true if secure command needs to be run under https. |
void |
postInvokeCommand(CommandContext commandContext)
This method implements adapter specific function after the execution of a command. |
boolean |
preInvokeCommand(CommandContext commandContext)
This method implements adapter specific function before the execution of a command. |
com.ibm.commerce.browseradapter.HttpControllerRequestObject |
preprocessRequest()
Builds up the HttpControllerRequest object based on current HttpRequest and executes some session management specific security checks. |
void |
processCacheAdd(CommandContext aCommandContext,
com.ibm.commerce.browseradapter.CacheObjectID aCacheObjectID)
Adds the request result to the cache. |
boolean |
processCacheGet(CommandContext aCommandContext,
com.ibm.commerce.browseradapter.CacheObjectID aCacheObjectID)
Retrieves the request result from the cache. |
static HttpBrowserAdapter |
singleton()
Returns a singleton instance of this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.adapter.HttpAdapterFactory |
checkDeviceFormat, createAdapter |
Constructor Detail |
public HttpBrowserAdapter()
Method Detail |
public boolean checkDeviceFormat(com.ibm.commerce.browseradapter.HttpServletRequest req, TypedProperty prop)
req
- HttpServletRequestprop
- TypedPropertiespublic HttpAdapter createAdapter(com.ibm.commerce.browseradapter.HttpServletRequest _req, com.ibm.commerce.browseradapter.HttpServletResponse _resp, TypedProperty _prop)
public HttpSessionContext createSessionContext() throws ECException
public boolean getCacheObjectID(CommandContext commandContext, com.ibm.commerce.browseradapter.CacheObjectID aCacheObjectID, TypedProperty parm)
public java.lang.String getDocumentPathName(java.lang.String name)
getDocumentPathName
in class AbstractHttpAdapter
com.ibm.commerce.adapter.AbstractHttpAdapter
public SessionContext getSessionContext() throws ECException
public boolean httpsRedirection()
public void postInvokeCommand(CommandContext commandContext)
commandContext
- CommandContext - the command context associated with the command.ECException
- public boolean preInvokeCommand(CommandContext commandContext)
commandContext
- CommandContext - the command context associated with the command.ECException
- public com.ibm.commerce.browseradapter.HttpControllerRequestObject preprocessRequest()
preprocessRequest
in class AbstractHttpAdapter
public void processCacheAdd(CommandContext aCommandContext, com.ibm.commerce.browseradapter.CacheObjectID aCacheObjectID)
public boolean processCacheGet(CommandContext aCommandContext, com.ibm.commerce.browseradapter.CacheObjectID aCacheObjectID)
public static HttpBrowserAdapter singleton()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |