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
public abstract class SomQmgrCommand extends SomCommand
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
Constructors Constructor Description SomQmgrCommand(SomSession session, SomQmgrHandler handler, SomCommandListener listener)
Create a new command object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SomQmgrHandler
getHandler()
Return handler objectvoid
processResponse(java.lang.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 object-
Methods inherited from class com.isode.som.SomCommand
dispatch, getCommandString, getSession, notifyListener, notifyListener, notifyListener
-
-
-
-
Constructor Detail
-
SomQmgrCommand
public SomQmgrCommand(SomSession session, SomQmgrHandler handler, SomCommandListener listener)
Create a new command object- Parameters:
session
- SOM session for this commandhandler
- Result handler objectlistener
- Listener to be informed when command complete
-
-
Method Detail
-
getHandler
public SomQmgrHandler getHandler()
Return handler object- Returns:
- current handler object for this command
-
processResponse
public void processResponse(java.lang.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 object- Specified by:
processResponse
in interfaceSomResponseProcessor
- Overrides:
processResponse
in classSomCommand
- Parameters:
commandData
- The initial response stringbytedata
- The accompanying datastatus
- Status code for operation
-
-