Package com.isode.som.pumice
Class SomPumiceManageMailboxCommand
- java.lang.Object
-
- com.isode.som.SomCommand
-
- com.isode.som.pumice.SomPumiceCommand
-
- com.isode.som.pumice.SomPumiceManageMailboxCommand
-
- All Implemented Interfaces:
SomResponseProcessor
- Direct Known Subclasses:
SomPumiceTidyMailboxCommand
public class SomPumiceManageMailboxCommand extends SomPumiceCommand
Class which implements commands for mailbox management- Author:
- tc
-
-
Field Summary
Fields Modifier and Type Field Description static intSOM_PUMICE_BACKUP_MAILBOXstatic intSOM_PUMICE_DELETE_MAILBOXstatic intSOM_PUMICE_DEREGISTER_AUTOACTIONstatic intSOM_PUMICE_REBUILD_STATSstatic intSOM_PUMICE_REGISTER_AUTOACTIONstatic intSOM_PUMICE_RESTORE_MAILBOXstatic intSOM_PUMICE_RESTORE_MESSAGEstatic intSOM_PUMICE_RESYNCHRONIZEstatic intSOM_PUMICE_TIDY_MAILBOX-
Fields inherited from class com.isode.som.SomCommand
opListener
-
-
Constructor Summary
Constructors Constructor Description SomPumiceManageMailboxCommand(SomPumiceSession session, int op, java.lang.String mailbox, SomPumiceHandler object, SomCommandListener listener)Create a new command to manage a mailbox
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCommandString()Get command stringvoidsetQualifier(java.lang.String s)Set the qualifier for the command.-
Methods inherited from class com.isode.som.pumice.SomPumiceCommand
getHandler, handleErrors, processResponse, quotesRound
-
Methods inherited from class com.isode.som.SomCommand
dispatch, getSession, notifyListener, notifyListener, notifyListener
-
-
-
-
Field Detail
-
SOM_PUMICE_REBUILD_STATS
public static final int SOM_PUMICE_REBUILD_STATS
- See Also:
- Constant Field Values
-
SOM_PUMICE_TIDY_MAILBOX
public static final int SOM_PUMICE_TIDY_MAILBOX
- See Also:
- Constant Field Values
-
SOM_PUMICE_DELETE_MAILBOX
public static final int SOM_PUMICE_DELETE_MAILBOX
- See Also:
- Constant Field Values
-
SOM_PUMICE_BACKUP_MAILBOX
public static final int SOM_PUMICE_BACKUP_MAILBOX
- See Also:
- Constant Field Values
-
SOM_PUMICE_RESTORE_MAILBOX
public static final int SOM_PUMICE_RESTORE_MAILBOX
- See Also:
- Constant Field Values
-
SOM_PUMICE_RESTORE_MESSAGE
public static final int SOM_PUMICE_RESTORE_MESSAGE
- See Also:
- Constant Field Values
-
SOM_PUMICE_REGISTER_AUTOACTION
public static final int SOM_PUMICE_REGISTER_AUTOACTION
- See Also:
- Constant Field Values
-
SOM_PUMICE_DEREGISTER_AUTOACTION
public static final int SOM_PUMICE_DEREGISTER_AUTOACTION
- See Also:
- Constant Field Values
-
SOM_PUMICE_RESYNCHRONIZE
public static final int SOM_PUMICE_RESYNCHRONIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SomPumiceManageMailboxCommand
public SomPumiceManageMailboxCommand(SomPumiceSession session, int op, java.lang.String mailbox, SomPumiceHandler object, SomCommandListener listener)
Create a new command to manage a mailbox- Parameters:
session- the SOM sessionop- operation codemailbox- mailbox to operate onobject- result handler objectlistener- result listener
-
-
Method Detail
-
setQualifier
public void setQualifier(java.lang.String s)
Set the qualifier for the command. Qualifiers are needed for: SOM_PUMICE_BACKUP_MAILBOX (backup destination folder) SOM_PUMICE_RESTORE_MAILBOX (restore source folder) SOM_PUMICE_RESTORE_MESSAGE (message source file) SOM_PUMICE_REGISTER_AUTOACTION (hex-encoded autoaction ASN.1) SOM_PUMICE_DEREGISTER_AUTOACTION (ditto)- Parameters:
s- command qualifier
-
getCommandString
public java.lang.String getCommandString() throws SomExceptionGet command string- Overrides:
getCommandStringin classSomCommand- Returns:
- the string for this command
- Throws:
SomException- on error
-
-