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
Abstract class which implements the basic "view" command.
- Author:
- tc
-
Field Summary
FieldsFields inherited from class com.isode.som.SomCommand
opListener, opSession
-
Constructor Summary
ConstructorsConstructorDescriptionSomQmgrViewCommand
(SomSession session, SomQmgrHandler object, SomCommandListener listener) Create a new SomQmgrViewCommand object -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessageId
(String id) Set the message id parameter for the commandvoid
processResponse
(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 objectMethods inherited from class com.isode.som.qmgr.SomQmgrCommand
getHandler
Methods inherited from class com.isode.som.SomCommand
dispatch, getCommandString, getSession, notifyListener, notifyListener, notifyListener
-
Field Details
-
msgid
-
-
Constructor Details
-
SomQmgrViewCommand
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 Details
-
addMessageId
Set the message id parameter for the command- Parameters:
id
- Message id which may not be null
-
processResponse
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
-