public class ConfirmBODResponseCmdImpl extends java.lang.Object implements MessageMappingResponseCmd
Confirm BOD
response. Any Sync
type of
controller command can use this response command for creating the response.
The result of this command is a ConfirmBOD
object that will
contain the error information in the case of an exception. In the case where
the command executes successfully, no error information is required.Constructor and Description |
---|
ConfirmBODResponseCmdImpl()
Creates an instance of the ConfirmBOD response command.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Creates the confirm business object document based on the controller command
and the exception specified.
|
BusinessObjectDocumentType |
getBusinessObjectDocument()
This method returns the
ConfirmBOD object that represents the
request execution. |
boolean |
isReadyToCallExecute()
This method returns whether the command can be executed.
|
void |
reset()
This method resets the instance variables of the command.
|
void |
setControllerCommand(ControllerCommand controllerCommand)
This method sets the controller command associated with creating the Confirm response.
|
void |
setException(java.lang.Exception exception)
This method sets the exception that resulted when executing the request.
|
public ConfirmBODResponseCmdImpl()
public void setControllerCommand(ControllerCommand controllerCommand)
setControllerCommand
in interface MessageMappingResponseCmd
controllerCommand
- The controller command.MessageMappingResponseCmd.setControllerCommand(com.ibm.commerce.command.ControllerCommand)
public void setException(java.lang.Exception exception)
setException
in interface MessageMappingResponseCmd
exception
- The resulting exception.MessageMappingResponseCmd.setException(java.lang.Exception)
public BusinessObjectDocumentType getBusinessObjectDocument()
ConfirmBOD
object that represents the
request execution.getBusinessObjectDocument
in interface MessageMappingResponseCmd
MessageMappingResponseCmd.getBusinessObjectDocument()
public void execute() throws com.ibm.websphere.command.CommandException
execute
in interface com.ibm.websphere.command.Command
com.ibm.websphere.command.CommandException
Command.execute()
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
true
is returned in the controller command has been set,
otherwise false
.Command.isReadyToCallExecute()
public void reset()
reset
in interface com.ibm.websphere.command.Command
Command.reset()