Package com.isode.som.pumice
Class SomPumiceStatusCommand
- java.lang.Object
-
- com.isode.som.SomCommand
-
- com.isode.som.pumice.SomPumiceCommand
-
- com.isode.som.pumice.SomPumiceStatusCommand
-
- All Implemented Interfaces:
SomResponseProcessor
public class SomPumiceStatusCommand extends SomPumiceCommand
Class providing the various Message Store status commands, which can be used to obtain information about the Store as a whole, an individual mailbox, connection or message.- Author:
- tc
-
-
Field Summary
Fields Modifier and Type Field Description static intSOM_PUMICE_CONNECTIONstatic intSOM_PUMICE_MAILBOXstatic intSOM_PUMICE_MESSAGEstatic intSOM_PUMICE_STORE-
Fields inherited from class com.isode.som.SomCommand
opListener
-
-
Constructor Summary
Constructors Constructor Description SomPumiceStatusCommand(SomPumiceSession session, SomPumiceHandler object, SomCommandListener listener)Construct a status command which will obtain information about the Message Store as a whole.SomPumiceStatusCommand(SomPumiceSession session, SomPumiceHandler object, SomCommandListener listener, int conn)Construct a status command which will obtain information about a connectionSomPumiceStatusCommand(SomPumiceSession session, SomPumiceHandler object, SomCommandListener listener, java.lang.String path)Construct a status command which will obtain information about a mailboxSomPumiceStatusCommand(SomPumiceSession session, SomPumiceHandler object, SomCommandListener listener, java.lang.String path, int num)Construct a status command which will obtain information about a message
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCommandString()voidprocessResponse(java.lang.String commandData, byte[] bytedata, int status)Process response to command.-
Methods inherited from class com.isode.som.pumice.SomPumiceCommand
getHandler, handleErrors, quotesRound
-
Methods inherited from class com.isode.som.SomCommand
dispatch, getSession, notifyListener, notifyListener, notifyListener
-
-
-
-
Field Detail
-
SOM_PUMICE_STORE
public static final int SOM_PUMICE_STORE
- See Also:
- Constant Field Values
-
SOM_PUMICE_MAILBOX
public static final int SOM_PUMICE_MAILBOX
- See Also:
- Constant Field Values
-
SOM_PUMICE_CONNECTION
public static final int SOM_PUMICE_CONNECTION
- See Also:
- Constant Field Values
-
SOM_PUMICE_MESSAGE
public static final int SOM_PUMICE_MESSAGE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SomPumiceStatusCommand
public SomPumiceStatusCommand(SomPumiceSession session, SomPumiceHandler object, SomCommandListener listener)
Construct a status command which will obtain information about the Message Store as a whole.- Parameters:
session- SOM session object for commandobject- Handler for resultlistener- Listener for command response
-
SomPumiceStatusCommand
public SomPumiceStatusCommand(SomPumiceSession session, SomPumiceHandler object, SomCommandListener listener, java.lang.String path)
Construct a status command which will obtain information about a mailbox- Parameters:
session- SOM session object for commandobject- Handler for resultlistener- Listener for command responsepath- mailbox identifier - ORAddress
-
SomPumiceStatusCommand
public SomPumiceStatusCommand(SomPumiceSession session, SomPumiceHandler object, SomCommandListener listener, int conn)
Construct a status command which will obtain information about a connection- Parameters:
session- SOM session object for commandobject- Handler for resultlistener- Listener for command responseconn- connection number
-
SomPumiceStatusCommand
public SomPumiceStatusCommand(SomPumiceSession session, SomPumiceHandler object, SomCommandListener listener, java.lang.String path, int num)
Construct a status command which will obtain information about a message- Parameters:
session- SOM session object for commandobject- Handler for resultlistener- Listener for command responsepath- mailbox identifier - ORAddressnum- message sequence number
-
-
Method Detail
-
getCommandString
public java.lang.String getCommandString() throws SomException- Overrides:
getCommandStringin classSomCommand- Returns:
- The command string to be sent over the wire.
- Throws:
SomException- Indicating a problem with the command
-
processResponse
public void processResponse(java.lang.String commandData, byte[] bytedata, int status)Description copied from class:SomCommandProcess response to command.- Specified by:
processResponsein interfaceSomResponseProcessor- Overrides:
processResponsein classSomPumiceCommand
-
-