public class MessageMappingCmdImpl extends com.ibm.websphere.command.CacheableCommandImpl implements BusinessObjectDocumentCmd
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 |
---|---|
protected void | createBusinessObjectDocumentResponse(CommandProperty commandProperty, ControllerCommand controllerCommand, java.lang.Exception exception)
Creates the response business object document by extracting the response or error command specified in the command property control parameters and executing it.
|
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.
|
protected void | invokeCommand(CommandProperty commandProperty)
This method will extract the controller command from the specified command property and invoke the command.
|
boolean | isReadyToCallExecute()
This method always indicates the command is ready to execute.
|
protected void | performAction()
This method leverages the message mapping feature to convert the request business object document into a command property object.
|
void | performExecute()
This method will execute the change command by calling validateAction and performAction.
|
void | setRequestBusinessObjectDocument(BusinessObjectDocumentType businessObjectDocument)
Sets the request business object document.
|
protected void | setResultBusinessObjectDocument(BusinessObjectDocumentType businessObjectDocument)
This methods sets the resulting business object document for the request.
|
protected void | validateAction()
This method does not perform any validation.
|
public 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()
public final void performExecute() throws java.lang.Exception
protected void performAction() throws java.lang.Exception
protected void invokeCommand(CommandProperty commandProperty) throws java.lang.Exception
protected void createBusinessObjectDocumentResponse(CommandProperty commandProperty, ControllerCommand controllerCommand, java.lang.Exception exception) throws com.ibm.websphere.command.CommandException
protected void validateAction() throws java.lang.Exception
public BusinessObjectDocumentType getResultBusinessObjectDocument()
protected void setResultBusinessObjectDocument(BusinessObjectDocumentType businessObjectDocument)
public void setRequestBusinessObjectDocument(BusinessObjectDocumentType businessObjectDocument)
public final void handleException(java.lang.Exception exception)