Class SomQmgrViewCommand

All Implemented Interfaces:
SomResponseProcessor
Direct Known Subclasses:
SomQmgrViewArchiveCommand, SomQmgrViewQueueCommand

public abstract class SomQmgrViewCommand extends SomQmgrCommand
Abstract class which implements the basic "view" command.
Author:
tc
  • Field Details

    • msgid

      protected String msgid
  • Constructor Details

    • SomQmgrViewCommand

      public SomQmgrViewCommand(SomSession session, SomQmgrHandler object, SomCommandListener listener)
      Create a new SomQmgrViewCommand object
      Parameters:
      session - Session for command which may not be null
      object - Handler object for result which may not be null
      listener - Listener object which may not be null
  • Method Details

    • addMessageId

      public void addMessageId(String id)
      Set the message id parameter for the command
      Parameters:
      id - Message id which may not be null
    • processResponse

      public void processResponse(String commandData, byte[] data, 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
      data - The accompanying data
      status - Status code for operation