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
public class SomMessageResubmitCommand extends SomQmgrCommand
Message resubmit command- Author:
- mst
-
-
Field Summary
-
Fields inherited from class com.isode.som.SomCommand
opListener, opSession
-
-
Constructor Summary
Constructors Constructor Description SomMessageResubmitCommand(SomSession somSession, SomQmgrHandler handler)Create a new SOM message resubmission command
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRecipient(java.lang.String recipient)protected java.lang.StringgetCommandString()java.lang.StringgetFilename()Get name of messagejava.lang.StringgetOriginator()Get originator addressjava.lang.IntegergetStatus()voidprocessResponse(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 objectvoidsetFilename(java.lang.String filename)Set name of message file to resubmitvoidsetOriginator(java.lang.String originator)Set originator address for resubmissionvoidsetStatus(java.lang.Integer status)-
Methods inherited from class com.isode.som.qmgr.SomQmgrCommand
getHandler
-
Methods inherited from class com.isode.som.SomCommand
dispatch, getSession, notifyListener, notifyListener, notifyListener
-
-
-
-
Constructor Detail
-
SomMessageResubmitCommand
public SomMessageResubmitCommand(SomSession somSession, SomQmgrHandler handler)
Create a new SOM message resubmission command- Parameters:
somSession- Session for commandhandler- Handler for result
-
-
Method Detail
-
setFilename
public void setFilename(java.lang.String filename)
Set name of message file to resubmit- Parameters:
filename- Name of message file
-
getFilename
public java.lang.String getFilename()
Get name of message- Returns:
- Message filename
-
setOriginator
public void setOriginator(java.lang.String originator)
Set originator address for resubmission- Parameters:
originator- Email address of originator when message resubmitted
-
getOriginator
public java.lang.String getOriginator()
Get originator address- Returns:
- Message originator address
-
addRecipient
public void addRecipient(java.lang.String recipient)
-
setStatus
public void setStatus(java.lang.Integer status)
-
getStatus
public java.lang.Integer getStatus()
-
getCommandString
protected 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: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
-
-