Class SomQmgrCommand

java.lang.Object
com.isode.som.SomCommand
com.isode.som.qmgr.SomQmgrCommand
All Implemented Interfaces:
SomResponseProcessor
Direct Known Subclasses:
SomMessageResubmitCommand, SomQmgrChannelControlCommand, SomQmgrChannelReadCommand, SomQmgrControlCommand, SomQmgrMessageControlCommand, SomQmgrMessageReadCommand, SomQmgrMessageSearchCommand, SomQmgrMtaCkadrCommand, SomQmgrMtaControlCommand, SomQmgrMtaReadCommand, SomQmgrStatusCommand, SomQmgrUserEventCommand, SomQmgrViewCommand

public abstract class SomQmgrCommand extends SomCommand
Abstract class which forms the basis for all SOM QMGR message commands
Author:
tc
  • Constructor Details

    • SomQmgrCommand

      public SomQmgrCommand(SomSession session, SomQmgrHandler handler, SomCommandListener listener)
      Create a new command object
      Parameters:
      session - SOM session for this command
      handler - Result handler object
      listener - Listener to be informed when command complete
  • Method Details

    • getHandler

      public SomQmgrHandler getHandler()
      Return handler object
      Returns:
      current handler object for this command
    • processResponse

      public void processResponse(String commandData, byte[] bytedata, int status)
      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 SomCommand
      Parameters:
      commandData - The initial response string
      bytedata - The accompanying data
      status - Status code for operation