|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cybersource.ws.client.MerchantConfig
public class MerchantConfig
An internal class used by the clients to hold and derive the properties applicable to the current transaction.
| Constructor Summary | |
|---|---|
MerchantConfig(Properties _props,
String _merchantID)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getEffectiveNamespaceURI()
Returns the effective namespace URI to be used to parse the request and reply documents. |
String |
getEffectivePassword()
Returns the effective key password. |
String |
getEffectiveServerURL()
Returns the effective server URL to which the request will be sent. |
boolean |
getEnableLog()
|
String |
getKeyAlias()
|
File |
getKeyFile()
Returns a File object representing the key file. |
String |
getKeyFilename()
|
String |
getKeyPassword()
|
String |
getKeysDirectory()
|
String |
getLogDirectory()
|
File |
getLogFile()
Returns a File object representing the log file. |
String |
getLogFilename()
|
int |
getLogMaximumSize()
|
boolean |
getLogSignedData()
|
String |
getLogString()
Returns a string representation of the properties for logging purposes. |
String |
getMerchantID()
|
String |
getNamespaceURI()
|
String |
getPassword()
|
String |
getProperty(String merchantID,
String prop)
Returns the value of the specified property. |
String |
getProperty(String merchantID,
String prop,
String defaultVal)
Returns the value of the specified property. |
String |
getProxyHost()
|
String |
getProxyPassword()
|
int |
getProxyPort()
|
String |
getProxyUser()
|
boolean |
getSendToAkamai()
|
boolean |
getSendToProduction()
|
String |
getServerURL()
|
String |
getTargetAPIVersion()
|
int |
getTimeout()
|
boolean |
getUseHttpClient()
|
boolean |
getUseSignAndEncrypted()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MerchantConfig(Properties _props,
String _merchantID)
throws com.cybersource.ws.client.ConfigException
_props - Properties object to get properties from. May be
null, in which case, all properties will be read
from the System properties._merchantID - merchantID. May be null. If specified, merchant-
specific properties will take precedence over
the generic ones (i.e. those that do not start
with a merchant id prefix).
ConfigException - if something is missing of invalid in the
configuration.| Method Detail |
|---|
public boolean getUseSignAndEncrypted()
public String getMerchantID()
public String getKeysDirectory()
public String getKeyAlias()
public String getKeyPassword()
public boolean getSendToProduction()
public boolean getSendToAkamai()
public String getTargetAPIVersion()
public String getKeyFilename()
public String getServerURL()
public String getNamespaceURI()
public String getPassword()
public boolean getEnableLog()
public boolean getLogSignedData()
public String getLogDirectory()
public String getLogFilename()
public int getLogMaximumSize()
public boolean getUseHttpClient()
public int getTimeout()
public String getProxyHost()
public int getProxyPort()
public String getProxyUser()
public String getProxyPassword()
public String getEffectiveServerURL()
public String getEffectiveNamespaceURI()
public String getEffectivePassword()
public File getKeyFile()
throws com.cybersource.ws.client.ConfigException
ConfigException - if the file is missing, is not a file, or is
not readable.
public File getLogFile()
throws com.cybersource.ws.client.ConfigException
ConfigException - if the directory specified for the log file is
missing or is not a directory.
public String getProperty(String merchantID,
String prop)
merchantID - merchant id.prop - property to search for.
null if none
is found.
public String getProperty(String merchantID,
String prop,
String defaultVal)
merchantID - merchant id.prop - property to search for.defaultVal - default value to return if property is not found
(may be null).
public String getLogString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||