Package com.isode.som.qmgr
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
Abstract class which forms the basis for all SOM QMGR message commands
- Author:
- tc
-
Field Summary
Fields inherited from class com.isode.som.SomCommand
opListener, opSession -
Constructor Summary
ConstructorsConstructorDescriptionSomQmgrCommand(SomSession session, SomQmgrHandler handler, SomCommandListener listener) Create a new command object -
Method Summary
Modifier and TypeMethodDescriptionReturn handler objectvoidprocessResponse(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 objectMethods inherited from class com.isode.som.SomCommand
dispatch, getCommandString, getSession, notifyListener, notifyListener, notifyListener
-
Constructor Details
-
SomQmgrCommand
Create a new command object- Parameters:
session- SOM session for this commandhandler- Result handler objectlistener- Listener to be informed when command complete
-
-
Method Details
-
getHandler
Return handler object- Returns:
- current handler object for this command
-
processResponse
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:
processResponsein interfaceSomResponseProcessor- Overrides:
processResponsein classSomCommand- Parameters:
commandData- The initial response stringbytedata- The accompanying datastatus- Status code for operation
-