public class OrderRequestConnector extends java.lang.Object implements ApplicationConnectorInterface, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private static java.text.DecimalFormat |
cvPriceFormat |
private boolean |
debug
Debug flag, if true, provides additional logging.
|
private static int |
ERROR |
(package private) java.lang.String |
ivError
Error text
|
private static int |
NORMAL
Send order request result codes.
|
private static long |
serialVersionUID
The class' serialization version id.
|
COPYRIGHT
Constructor and Description |
---|
OrderRequestConnector()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
fillAddress(java.util.List<?> values,
java.lang.String[] address,
int index)
Fill address array with values from XML.
|
JavaConnectorResult |
run(ConnectorParameters parms)
Method called by the flow manager to execute the application connector.
|
int |
sendRequest(OrderRequest orderRequest)
Method called to send the order request to the Flash server.
|
private static final long serialVersionUID
private static java.text.DecimalFormat cvPriceFormat
private static int NORMAL
private static int ERROR
java.lang.String ivError
private boolean debug
public JavaConnectorResult run(ConnectorParameters parms)
run
in interface ApplicationConnectorInterface
parms
- (ConnectorParm) Parameter information for the transaction.public int sendRequest(OrderRequest orderRequest)
orderRequest
- (OrderRequest) The order request to send.public int fillAddress(java.util.List<?> values, java.lang.String[] address, int index)
values
- (List) List of data values in the request.address
- (String[]) Array of address lines.index
- (int) Current index into the address line array.