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 void
addRecipient(java.lang.String recipient)
protected java.lang.String
getCommandString()
java.lang.String
getFilename()
Get name of messagejava.lang.String
getOriginator()
Get originator addressjava.lang.Integer
getStatus()
void
processResponse(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 objectvoid
setFilename(java.lang.String filename)
Set name of message file to resubmitvoid
setOriginator(java.lang.String originator)
Set originator address for resubmissionvoid
setStatus(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:
getCommandString
in 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:SomQmgrCommand
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 object- Specified by:
processResponse
in interfaceSomResponseProcessor
- Overrides:
processResponse
in classSomQmgrCommand
- Parameters:
commandData
- The initial response stringbytedata
- The accompanying datastatus
- Status code for operation
-
-