public class MailConfirmation
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
class |
MailConfirmation.PerformComm
Inner class to handle the communication with the Flash server.
|
Modifier and Type | Field and Description |
---|---|
protected static MessageBundle |
cvMessage
A reference to the server resource properties.
|
protected static java.util.ResourceBundle |
cvProps
A reference to the server resource properties.
|
protected static java.lang.String |
DEFAULT_ENCODING
The default character encoding.
|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
MailConfirmation(java.lang.String[] args)
Constructs a
MailConfirmation object and communicates with the
Flash server to send email order confirmations. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkParm(java.util.HashMap<java.lang.String,java.lang.String> pMap,
java.lang.String parmName)
Checks if a given parameter name is in the parameter map.
|
void |
confirm(java.lang.String[] args)
Method called to process command line parameters and communicate with the
Flash server to send email order confirmations.
|
void |
confirmWithFlexArgs(java.lang.String[] args)
Method called to process command line parameters and communicate with the
Flash server to send email order confirmations.
|
static void |
main(java.lang.String[] args)
Method called to receive command line parameters and communicate with the
Flash server to send email order confirmations.
|
private static final long serialVersionUID
protected static MessageBundle cvMessage
protected static java.util.ResourceBundle cvProps
protected static final java.lang.String DEFAULT_ENCODING
public MailConfirmation(java.lang.String[] args)
MailConfirmation
object and communicates with the
Flash server to send email order confirmations.args
- (String[]) The array of command line arguments. This must
be specified as follows:
args[0] - the user id on the Flash system (or may now
be an actual email address using the format
"mailto:xxx@yyy")
args[1] - the type of confirmation to send.
args[2] - the order reference number on the Flash system.
args[3] - the order number assigned on the backend system.
args[4] - the shipment reference number (required for ship
confs only).
args[5] - values to be available on the mail template.public static void main(java.lang.String[] args)
args
- (String[]) The array of command line arguments. This must
be specified as follows:
args[0] - the user id on the Flash system (or may now
be an actual email address using the format
"mailto:xxx@yyy")
args[1] - the type of confirmation to send.
args[2] - the order reference number on the Flash system.
args[3] - the order number assigned on the backend system.
args[4] - the shipment reference number (required for ship
confs only).
args[5] - values to be available on the mail template.public void confirm(java.lang.String[] args)
args
- (String[]) The array of command line arguments. This must
be specified as follows:
args[0] - the user id on the Flash system (or may now
be an actual email address using the format
"mailto:xxx@yyy")
args[1] - the type of confirmation to send.
args[2] - the order reference number on the Flash system.
args[3] - the order number assigned on the backend system.
args[4] - the shipment reference number (required for ship
confs only).
args[5] - values to be available on the mail template.public void confirmWithFlexArgs(java.lang.String[] args)
args
- (String[]) The array of command line arguments. This must
be specified as follows:
-parmName parmValue -parmName2 parmValue2 ...protected boolean checkParm(java.util.HashMap<java.lang.String,java.lang.String> pMap, java.lang.String parmName)
pMap
- (HashMap) The map of parameters.parmName
- (String) The parameter name to be checked.