Package com.isode.som.qmgr
Class SomQmgrViewCommand
- java.lang.Object
-
- com.isode.som.SomCommand
-
- com.isode.som.qmgr.SomQmgrCommand
-
- com.isode.som.qmgr.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 Summary
Fields Modifier and Type Field Description protected java.lang.String
msgid
-
Fields inherited from class com.isode.som.SomCommand
opListener, opSession
-
-
Constructor Summary
Constructors Constructor Description SomQmgrViewCommand(SomSession session, SomQmgrHandler object, SomCommandListener listener)
Create a new SomQmgrViewCommand object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMessageId(java.lang.String id)
Set the message id parameter for the commandvoid
processResponse(java.lang.String commandData, byte[] data, 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-
Methods inherited from class com.isode.som.qmgr.SomQmgrCommand
getHandler
-
Methods inherited from class com.isode.som.SomCommand
dispatch, getCommandString, getSession, notifyListener, notifyListener, notifyListener
-
-
-
-
Constructor Detail
-
SomQmgrViewCommand
public SomQmgrViewCommand(SomSession session, SomQmgrHandler object, SomCommandListener listener)
Create a new SomQmgrViewCommand object- Parameters:
session
- Session for command which may not be nullobject
- Handler object for result which may not be nulllistener
- Listener object which may not be null
-
-
Method Detail
-
addMessageId
public void addMessageId(java.lang.String id)
Set the message id parameter for the command- Parameters:
id
- Message id which may not be null
-
processResponse
public void processResponse(java.lang.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 interfaceSomResponseProcessor
- Overrides:
processResponse
in classSomQmgrCommand
- Parameters:
commandData
- The initial response stringdata
- The accompanying datastatus
- Status code for operation
-
-