Class SomMessageResubmitCommand

    • Constructor Detail

      • SomMessageResubmitCommand

        public SomMessageResubmitCommand​(SomSession somSession,
                                         SomQmgrHandler handler)
        Create a new SOM message resubmission command
        Parameters:
        somSession - Session for command
        handler - Handler for result
    • Method Detail

      • setFilename

        public void setFilename​(java.lang.String filename)
        Set name of message file to resubmit
        Parameters:
        filename - Name of message file
      • getFilename

        public java.lang.String getFilename()
        Get name of message
        Returns:
        Message filename
      • setOriginator

        public void setOriginator​(java.lang.String originator)
        Set originator address for resubmission
        Parameters:
        originator - Email address of originator when message resubmitted
      • getOriginator

        public java.lang.String getOriginator()
        Get originator address
        Returns:
        Message originator address
      • addRecipient

        public void addRecipient​(java.lang.String recipient)
      • setStatus

        public void setStatus​(java.lang.Integer status)
      • getStatus

        public java.lang.Integer getStatus()
      • getCommandString

        protected java.lang.String getCommandString()
                                             throws SomException
        Overrides:
        getCommandString in class SomCommand
        Returns:
        The command string to be sent over the wire.
        Throws:
        SomException - Indicating a problem with the command
      • processResponse

        public void processResponse​(java.lang.String commandData,
                                    byte[] bytedata,
                                    int status)
        Description copied from class: SomQmgrCommand
        Process a SOM command response, creating appropriate objects to hold data from the response if necessary, and passing to the correct methods of the handler object
        Specified by:
        processResponse in interface SomResponseProcessor
        Overrides:
        processResponse in class SomQmgrCommand
        Parameters:
        commandData - The initial response string
        bytedata - The accompanying data
        status - Status code for operation