public class MessageMappingCmdImpl extends com.ibm.websphere.command.CacheableCommandImpl implements BusinessObjectDocumentCmd
responseCommand or errorCommand found in the control
parameters returned by the message mapping configuration points to the code
to create the response message.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUSINESS_OBJECT_DOCUMENT_REQUEST_CONTROL_PARAMETERS
The property name used to place the request control parameters into the
request properties.
|
static java.lang.String |
BUSINESS_OBJECT_DOCUMENT_REQUEST_OBJECT
The property name used to place the request business object document into the
request properties.
|
static java.lang.String |
COMPONENT_SERVICES_MESSAGE_MAPPER
The Message Mapper Name for component services
|
| Constructor and Description |
|---|
MessageMappingCmdImpl()
Creates an instance of the message mapping command to invoke
classic commerce controller commands using the message mapping
feature.
|
| Modifier and Type | Method and Description |
|---|---|
BusinessObjectDocumentType |
getResultBusinessObjectDocument()
This method returns the response business object document for the request.
|
void |
handleException(java.lang.Exception exception)
A final method that for internal use only in MessageMappingCmdImpl
In order to add Exception Handling for SOI command, use "errorCommand" approach
to define a command to generate the error response.
|
boolean |
isReadyToCallExecute()
This method always indicates the command is ready to execute.
|
void |
performExecute()
This method will execute the change command by calling
validateAction
and performAction. |
void |
setRequestBusinessObjectDocument(BusinessObjectDocumentType businessObjectDocument)
Sets the request business object document.
|
execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, reset, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicypublic static final java.lang.String COMPONENT_SERVICES_MESSAGE_MAPPER
public static final java.lang.String BUSINESS_OBJECT_DOCUMENT_REQUEST_OBJECT
public static final java.lang.String BUSINESS_OBJECT_DOCUMENT_REQUEST_CONTROL_PARAMETERS
public MessageMappingCmdImpl()
public boolean isReadyToCallExecute()
isReadyToCallExecute in interface com.ibm.websphere.command.CommandisReadyToCallExecute in class com.ibm.websphere.command.TargetableCommandImplCommand.isReadyToCallExecute()public final void performExecute()
throws java.lang.Exception
validateAction
and performAction. This method controls the steps required
when executing the change verb.performExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class com.ibm.websphere.command.TargetableCommandImpljava.lang.Exception - Can occur if the validation of the business object document
fails or a problem occur when performing the action.TargetableCommand.performExecute()public BusinessObjectDocumentType getResultBusinessObjectDocument()
responseCommand
or errorCommand that is found in the message mapping configuration.getResultBusinessObjectDocument in interface BusinessObjectDocumentCmdBusinessObjectDocumentCmd.getResultBusinessObjectDocument()public void setRequestBusinessObjectDocument(BusinessObjectDocumentType businessObjectDocument)
setRequestBusinessObjectDocument in interface BusinessObjectDocumentCmdbusinessObjectDocument - The request business object document.BusinessObjectDocumentCmd.setRequestBusinessObjectDocument(com.ibm.commerce.oagis9.datatypes.BusinessObjectDocumentType)public final void handleException(java.lang.Exception exception)
handleException in interface BusinessObjectDocumentCmdexception - The exception is being thrown