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
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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.isode.som.SomCommand
opListener -
Constructor Summary
ConstructorsConstructorDescriptionSomPumiceStatusCommand(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, String path) Construct a status command which will obtain information about a mailboxSomPumiceStatusCommand(SomPumiceSession session, SomPumiceHandler object, SomCommandListener listener, String path, int num) Construct a status command which will obtain information about a message -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessResponse(String commandData, byte[] bytedata, int status) Process response to command.Methods inherited from class com.isode.som.pumice.SomPumiceCommand
getHandler, handleErrors, quotesRoundMethods inherited from class com.isode.som.SomCommand
dispatch, getSession, notifyListener, notifyListener, notifyListener
-
Field Details
-
SOM_PUMICE_STORE
public static final int SOM_PUMICE_STORE- See Also:
-
SOM_PUMICE_MAILBOX
public static final int SOM_PUMICE_MAILBOX- See Also:
-
SOM_PUMICE_CONNECTION
public static final int SOM_PUMICE_CONNECTION- See Also:
-
SOM_PUMICE_MESSAGE
public static final int SOM_PUMICE_MESSAGE- See Also:
-
-
Constructor Details
-
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, 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, 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 Details
-
getCommandString
- Overrides:
getCommandStringin classSomCommand- Returns:
- The command string to be sent over the wire.
- Throws:
SomException- Indicating a problem with the command
-
processResponse
Description copied from class:SomCommandProcess response to command.- Specified by:
processResponsein interfaceSomResponseProcessor- Overrides:
processResponsein classSomPumiceCommand
-