Class SomMessageResubmitCommand

java.lang.Object
com.isode.som.SomCommand
com.isode.som.qmgr.SomQmgrCommand
com.isode.som.auditdb.SomMessageResubmitCommand
All Implemented Interfaces:
SomResponseProcessor

public class SomMessageResubmitCommand extends SomQmgrCommand
Message resubmit command
Author:
mst
  • Constructor Details

    • SomMessageResubmitCommand

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

    • setFilename

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

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

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

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

      public void addRecipient(String recipient)
    • setStatus

      public void setStatus(Integer status)
    • getStatus

      public Integer getStatus()
    • getCommandString

      protected 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(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