|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectibilling.client.XMLSessionConnection
public class XMLSessionConnection
HTTP/XML based impelemtation of SessionConnection. Uses JDOM as underlying library.
| Field Summary | |
|---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
config
configuration map. |
private java.lang.Integer |
merchantAccountCode
merchant account code. |
private java.lang.String |
password
password. |
| Fields inherited from interface ibilling.client.SessionConnection |
|---|
CLIENT_EMAIL_DOMAIN, CLIENT_EMAIL_ENCODED, CLIENT_IP_ADDRESS, CLIENT_PASSWORD_ENCODED, CLIENT_USER_NAME_ENCODED, CONNECTION_TYPE, DEBUG, FIND_ACCOUNT_TRANSACTION, FIND_CUSTOMER_ACCOUNT, FIND_PAYMENT_OPTION, FIND_PAYMENT_PLAN, KEYSTORE_PASSWORD, KEYSTORE_PATH, LOAD_OBJECT, PAYMENT_OPTION_VERIFICATION_AMOUNT, PROCESSOR_HOST |
| Constructor Summary | |
|---|---|
XMLSessionConnection()
|
|
| Method Summary | |
|---|---|
java.util.List<ClientObject> |
find(SessionContext sessionContext,
java.lang.String queryName,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Communicates find message to server |
void |
login(java.lang.Integer merchantAccountCode,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.Object> config)
Communicates login message to the server |
void |
logout()
Communicates logout message to the server for a single CustomerAccount |
void |
save(SessionContext sessionContext,
java.util.List<CustomerAccount> customerAccounts)
Communicates save message to the server for a list of CustomerAccounts |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.Integer merchantAccountCode
private java.lang.String password
private java.util.Map<java.lang.String,java.lang.Object> config
| Constructor Detail |
|---|
public XMLSessionConnection()
| Method Detail |
|---|
public void login(java.lang.Integer merchantAccountCode,
java.lang.String password,
java.util.Map<java.lang.String,java.lang.Object> config)
SessionConnection
login in interface SessionConnectionmerchantAccountCode - merchant account codepassword - passwordconfig - configuration Map usually indicating connection URL
and SSL related parameterspublic void logout()
SessionConnection
logout in interface SessionConnection
public void save(SessionContext sessionContext,
java.util.List<CustomerAccount> customerAccounts)
throws ClientException
SessionConnection
save in interface SessionConnectioncustomerAccounts - List of CustomerAccounts to be saved
ClientException - in case of communication or validation issues
public java.util.List<ClientObject> find(SessionContext sessionContext,
java.lang.String queryName,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws ClientException
SessionConnection
find in interface SessionConnectionqueryName - name of the query to be executed by the serverparameters - search parameters to use within the query
ClientException - in case of communication or validation issues
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||