com.ibm.commerce.messaging.commands

Class NewInboundMessageCmdImpl

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • message

        public java.lang.String message
        The message buffer
    • Constructor Detail

      • NewInboundMessageCmdImpl

        public NewInboundMessageCmdImpl()
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        This method retrieves the message passed in the message buffer.
        Returns:
        The inbound message that triggers this command.
      • getResourceOwners

        public java.lang.Long[] getResourceOwners()
                                           throws ECException
        This method returns the organization unit reference numbers for all the resources accessed by this command. It returns null if no resource is being accessed by this command.
        Specified by:
        getResourceOwners in interface AccCommand
        Overrides:
        getResourceOwners in class ControllerCommandImpl
        Returns:
        An array of all organization unit reference numbers.
        Throws:
        ECException
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method checks if the command is ready to run and if the message buffer is null.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        True if ready to run, otherwise false.
      • performExecute

        public void performExecute()
                            throws ECException
        This method needs to be implemented to process new inbound message unknown to WebSphere Commerce Server. By default, it throws an exception indicating that this method is not customized.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface NewInboundMessageCmd
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - Raised with message _ERR_NI_NOT_CUSTOMIZED as there is no customized implementation
      • setMessage

        public void setMessage(java.lang.String newMessage)
        This method sets the content of the message buffer.
        Parameters:
        newMessage - A String to set the content of the message buffer.
      • setRequestProperties

        public void setRequestProperties(TypedProperty aRequestProperties)
        This method sets the request properties as input for the command where the message is retrieved from.
        Specified by:
        setRequestProperties in interface ControllerCommand
        Overrides:
        setRequestProperties in class ControllerCommandImpl
        Parameters:
        aRequestProperties - name-value pairs containing attributes for this command. The message content is retrieved using the key "message" and stored in the local variable "message"