public class PMClientFactory extends java.lang.Object implements PMConstants
The configuration data in the WebShpere Commerce Configuration XML dictates whether a PaymentServerClient object or PaymentServerSSLClient object is returned by this Factory class.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME |
Constructor and Description |
---|
PMClientFactory()
PMClientFactory default constructor.
|
Modifier and Type | Method and Description |
---|---|
static PaymentServerClient | createPMClient()
Factory method for vending PaymentServerClient or PaymentServerSSLClient object that WebSphere Commerce uses to communicate with WebSphere Commerce Payments.
|
public PMClientFactory()
This constructor is not expected to be called as this class contains only static methods.
public static PaymentServerClient createPMClient() throws ECException
Note: The returned object may actually be an instance of the PaymentServerSSLClient class which extends from the PaymentServerClient class.
For SSL Client, it is extremely important to issue close before exiting. Make sure you code a finally block with the close if the PaymentServerClient object is non null.