Package com.isode.som.auditdb
Class SomMessageResubmitCommand
java.lang.Object
com.isode.som.SomCommand
com.isode.som.qmgr.SomQmgrCommand
com.isode.som.auditdb.SomMessageResubmitCommand
- All Implemented Interfaces:
SomResponseProcessor
Message resubmit command
- Author:
- mst
-
Field Summary
Fields inherited from class com.isode.som.SomCommand
opListener, opSession -
Constructor Summary
ConstructorsConstructorDescriptionSomMessageResubmitCommand(SomSession somSession, SomQmgrHandler handler) Create a new SOM message resubmission command -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecipient(String recipient) protected StringGet name of messageGet originator addressvoidprocessResponse(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 objectvoidsetFilename(String filename) Set name of message file to resubmitvoidsetOriginator(String originator) Set originator address for resubmissionvoidMethods inherited from class com.isode.som.qmgr.SomQmgrCommand
getHandlerMethods inherited from class com.isode.som.SomCommand
dispatch, getSession, notifyListener, notifyListener, notifyListener
-
Constructor Details
-
SomMessageResubmitCommand
Create a new SOM message resubmission command- Parameters:
somSession- Session for commandhandler- Handler for result
-
-
Method Details
-
setFilename
Set name of message file to resubmit- Parameters:
filename- Name of message file
-
getFilename
Get name of message- Returns:
- Message filename
-
setOriginator
Set originator address for resubmission- Parameters:
originator- Email address of originator when message resubmitted
-
getOriginator
Get originator address- Returns:
- Message originator address
-
addRecipient
-
setStatus
-
getStatus
-
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:SomQmgrCommandProcess 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 classSomQmgrCommand- Parameters:
commandData- The initial response stringbytedata- The accompanying datastatus- Status code for operation
-