public class MerchantConfig
extends java.lang.Object
| Constructor and Description |
|---|
MerchantConfig(java.util.Properties _props,
java.lang.String _merchantID)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCacertPassword() |
java.lang.String |
getcustomHttpClass() |
java.lang.String |
getEffectiveNamespaceURI()
Returns the effective namespace URI to be used to parse the request and
reply documents.
|
java.lang.String |
getEffectivePassword()
Returns the effective key password.
|
java.lang.String |
getEffectiveServerURL()
Returns the effective server URL to which the request will be sent.
|
boolean |
getEnableLog() |
java.lang.String |
getKeyAlias() |
java.io.File |
getKeyFile()
Returns a File object representing the key file.
|
java.lang.String |
getKeyFilename() |
java.lang.String |
getKeyPassword() |
java.lang.String |
getKeysDirectory() |
java.lang.String |
getLogDirectory() |
java.io.File |
getLogFile()
Returns a File object representing the log file.
|
java.lang.String |
getLogFilename() |
int |
getLogMaximumSize() |
boolean |
getLogSignedData() |
java.lang.String |
getLogString()
Returns a string representation of the properties for logging purposes.
|
java.lang.String |
getMerchantID() |
java.lang.String |
getNamespaceURI() |
int |
getNumberOfRetries() |
java.lang.String |
getPassword() |
java.lang.String |
getProperty(java.lang.String merchantID,
java.lang.String prop)
Returns the value of the specified property.
|
java.lang.String |
getProperty(java.lang.String merchantID,
java.lang.String prop,
java.lang.String defaultVal)
Returns the value of the specified property.
|
java.lang.String |
getProxyHost() |
java.lang.String |
getProxyPassword() |
int |
getProxyPort() |
java.lang.String |
getProxyUser() |
long |
getRetryInterval() |
boolean |
getSendToAkamai() |
boolean |
getSendToProduction() |
java.lang.String |
getServerURL() |
java.lang.String |
getTargetAPIVersion() |
int |
getTimeout() |
java.util.UUID |
getUniqueKey() |
boolean |
getUseHttpClient() |
boolean |
getUseSignAndEncrypted() |
boolean |
isAllowRetry() |
boolean |
isCacertEnabled() |
boolean |
isCertificateCacheEnabled() |
boolean |
isCustomHttpClassEnabled() |
boolean |
isJdkCertEnabled() |
void |
setAllowRetry(boolean allowRetry) |
public MerchantConfig(java.util.Properties _props,
java.lang.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.public java.lang.String getcustomHttpClass()
public boolean isCustomHttpClassEnabled()
public boolean getUseSignAndEncrypted()
public java.lang.String getMerchantID()
public java.lang.String getKeysDirectory()
public java.lang.String getKeyAlias()
public java.lang.String getKeyPassword()
public boolean getSendToProduction()
public boolean getSendToAkamai()
public java.lang.String getTargetAPIVersion()
public java.lang.String getKeyFilename()
public java.lang.String getServerURL()
public java.lang.String getNamespaceURI()
public java.lang.String getPassword()
public boolean getEnableLog()
public boolean getLogSignedData()
public java.lang.String getLogDirectory()
public java.lang.String getLogFilename()
public int getLogMaximumSize()
public boolean getUseHttpClient()
public int getTimeout()
public java.lang.String getProxyHost()
public int getProxyPort()
public java.lang.String getProxyUser()
public java.lang.String getProxyPassword()
public boolean isCertificateCacheEnabled()
public java.lang.String getEffectiveServerURL()
public java.lang.String getEffectiveNamespaceURI()
public java.lang.String getEffectivePassword()
public java.io.File getKeyFile()
throws com.cybersource.ws.client.ConfigException
ConfigException - if the file is missing, is not a file, or is
not readable.public java.io.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 java.lang.String getProperty(java.lang.String merchantID,
java.lang.String prop)
merchantID - merchant id.prop - property to search for.null if none
is found.public java.lang.String getProperty(java.lang.String merchantID,
java.lang.String prop,
java.lang.String defaultVal)
merchantID - merchant id.prop - property to search for.defaultVal - default value to return if property is not found
(may be null).public java.lang.String getLogString()
public java.util.UUID getUniqueKey()
public int getNumberOfRetries()
public long getRetryInterval()
public boolean isAllowRetry()
public void setAllowRetry(boolean allowRetry)
public boolean isCacertEnabled()
public boolean isJdkCertEnabled()
public java.lang.String getCacertPassword()
Copyright © 2018. All Rights Reserved.