Class SomQmgrMessageReadCommand

All Implemented Interfaces:
SomResponseProcessor

public class SomQmgrMessageReadCommand extends SomQmgrCommand
This class implements the command which reads information about a message
Author:
tc
  • Constructor Details

    • SomQmgrMessageReadCommand

      public SomQmgrMessageReadCommand(SomSession session, String chan, String mta, SomQmgrHandler object, SomCommandListener listener)
      Create a new SomQmgrMessageReadCommand object
      Parameters:
      session - Session in which to construct command
      chan - Channel name for command which may not be null
      mta - MTA name for command which may not be null
      object - Result handler for command which may not be null
      listener - Listener object to be notified when command completes which may be null
    • SomQmgrMessageReadCommand

      public SomQmgrMessageReadCommand(SomSession session, String chan, String mta, SomQmgrSelector sel, SomQmgrHandler object, SomCommandListener listener)
      Create a new SomQmgrMessageReadCommand object, with a selector
      Parameters:
      session - Session in which to construct command
      chan - Channel name for command which may not be null
      mta - MTA name for command which may not be null
      sel - Selector, which may be null
      object - Result handler for command which may not be null
      listener - Listener object to be notified when command completes which may be null
    • SomQmgrMessageReadCommand

      public SomQmgrMessageReadCommand(SomSession session, String chan, SomQmgrSelector sel, SomQmgrHandler object, SomCommandListener listener)
      Create a new SomQmgrMessageReadCommand object, with a selector but no MTA
      Parameters:
      session - Session in which to construct command
      chan - Channel name for command which may not be null
      sel - Selector, which may be null
      object - Result handler for command which may not be null
      listener - Listener object to be notified when command completes which may be null
  • Method Details

    • getCommandString

      public String getCommandString() throws SomException
      Return string representation of command
      Returns:
      Command string
      Throws:
      SomException - on error
    • getSubcommand

      public String getSubcommand()
    • addSelector

      public void addSelector(SomQmgrSelector sel)
      Add a selector into a command object
      Parameters:
      sel - Selector to add