java.lang.Objectcom.ibm.etill.framework.clientapi.PaymentServerClient
com.ibm.etill.framework.clientapi.PaymentServerTestClient
The test client is intended to support merchant programmers who need to develop merchant applications that will use payment types that do not yet exist. It is a subclass of PaymentServerClient and can be used throughout most of the merchant's program as a PaymentServerClient. However, when issueCommand is called against a test client, instead of sending the command to Commerce Payments the test client retrieves an XML document from a standard location and uses that as the response. These XML documents should reflect what would be returned by Commerce Payments if the new payment cassette actually existed.
Field Summary |
Fields inherited from class com.ibm.etill.framework.clientapi.PaymentServerClient |
dtdPath, hostName, httpHeaderFields, lastRequest, lastXML, socket, socksHostName, socksPort, tcpPort |
Constructor Summary | |
PaymentServerTestClient() Default constructor. |
|
PaymentServerTestClient(java.lang.String dtdPath, java.lang.String hostName, int tcpPort) This constructor creates a Commerce Payments test client. |
|
PaymentServerTestClient(java.lang.String dtdPath, java.lang.String hostName, int tcpPort, java.util.Hashtable httpHeaderFields) This constructor creates a Commerce Payments test client. |
|
PaymentServerTestClient(java.lang.String dtdPath, java.lang.String hostName, int tcpPort, java.lang.String socksHostName, int socksPort) This constructor creates a Commerce Payments test client. |
|
PaymentServerTestClient(java.lang.String dtdPath, java.lang.String hostName, int tcpPort, java.lang.String socksHostName, int socksPort, java.util.Hashtable httpHeaderFields) This constructor creates a Commerce Payments test client. |
Method Summary | |
protected java.net.Socket | connect() Connect |
PaymentServerResponse | issueCommand(java.lang.String command, java.util.Hashtable keywordValuePairs, java.lang.String basicAuthUserid, java.lang.String basicAuthPassword) Send commands to Commerce Payments. |
Methods inherited from class com.ibm.etill.framework.clientapi.PaymentServerClient |
addLocaleToHttpHeader, close, finalize, getHostname, getHTTPHeaderFields, getLastRequest, getLastXML, getPort, getSocksHostname, getSocksPort, init, init, init, init, issueCommand, issueCommand, issueCommand |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PaymentServerTestClient()
public PaymentServerTestClient(java.lang.String dtdPath, java.lang.String hostName, int tcpPort, java.lang.String socksHostName, int socksPort, java.util.Hashtable httpHeaderFields)
public PaymentServerTestClient(java.lang.String dtdPath, java.lang.String hostName, int tcpPort, java.lang.String socksHostName, int socksPort)
public PaymentServerTestClient(java.lang.String dtdPath, java.lang.String hostName, int tcpPort, java.util.Hashtable httpHeaderFields)
public PaymentServerTestClient(java.lang.String dtdPath, java.lang.String hostName, int tcpPort)
Method Detail |
protected java.net.Socket connect() throws java.io.IOException
- create and connect a socket
- will be overridden by SSL client (and other subclasses)
public PaymentServerResponse issueCommand(java.lang.String command, java.util.Hashtable keywordValuePairs, java.lang.String basicAuthUserid, java.lang.String basicAuthPassword) throws PaymentServerClientException, PaymentServerAuthorizationException, PaymentServerCommunicationException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.