|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.programadapter.ProgramAdapter
The Program Adapter that can handle generic request objects.
Field Summary | |
static java.lang.String |
_STR_CreateAdapter
|
static java.lang.String |
_STR_InitFactory
|
static java.lang.String |
_STR_SetCommandProperties
|
static java.lang.String |
_STR_ThisClass
|
static java.lang.String |
_STR_ValidateDeviceFormat
|
Constructor Summary | |
ProgramAdapter()
NonHttpProgramAdapter constructor. |
Method Summary | |
boolean |
checkDeviceFormat(java.lang.Object req,
TypedProperty prop)
Return true if the input request can be processed by this adapter. |
com.ibm.commerce.adapter.nonhttp.NonHttpAdapter |
createAdapter(java.lang.Object request,
java.lang.Object response,
TypedProperty param)
This method returns an instance of this adapter if the request has the format defined by this adapter. |
void |
initFactory(org.w3c.dom.Element node)
initialize the Adapter factory based on the informtion defined in the dom node |
boolean |
preInvokeCommand(CommandContext commandContext)
This method implements adapter specific function before the execution of a command. |
boolean |
processResponse(CommandContext commandContext,
TypedProperty resProp)
This method is called by the web controller after it has successfully finished the execution of the request. |
void |
setCommandProperties(CommandProperty cmdProp)
Sets the CommandProperty of the adapter. |
CommandProperty |
validateDeviceFormat(java.lang.Object req)
Return true if the input request can be processed by this adapter. |
Field Detail |
public static final java.lang.String _STR_CreateAdapter
public static final java.lang.String _STR_InitFactory
public static final java.lang.String _STR_SetCommandProperties
public static final java.lang.String _STR_ThisClass
public static final java.lang.String _STR_ValidateDeviceFormat
Constructor Detail |
public ProgramAdapter()
Method Detail |
public boolean checkDeviceFormat(java.lang.Object req, TypedProperty prop)
public com.ibm.commerce.adapter.nonhttp.NonHttpAdapter createAdapter(java.lang.Object request, java.lang.Object response, TypedProperty param)
request
- HttpServletRequestresponse
- HttpServletResponseparam
- TypedProperty - request parameters
public void initFactory(org.w3c.dom.Element node) throws java.lang.Exception
public boolean preInvokeCommand(CommandContext commandContext) throws ECException
commandContext
- CommandContext - the command context associated with the command.ECException
- public boolean processResponse(CommandContext commandContext, TypedProperty resProp) throws ECException
respProperties
- TypedProperty - response properties returned by the command.public void setCommandProperties(CommandProperty cmdProp)
cmdProp
- CommandPropertypublic CommandProperty validateDeviceFormat(java.lang.Object req)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |