public final class ConfigParameters
extends java.lang.Object
Notice: The AdyenConfigParameters.Builder utility method can be used to easily
create the configuration parameters required by the 3DS SDK.
Created by Ran Haveshush on 24/08/2018.
| Constructor and Description |
|---|
ConfigParameters() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParam(java.lang.String group,
java.lang.String paramName,
java.lang.String paramValue)
Adds a configuration parameter either to the specified group or to the default group.
|
java.util.Map<java.lang.String,java.lang.String> |
getGroup(java.lang.String group)
Returns a group of configuration parameters value from the specified group.
|
java.lang.String |
getParamValue(java.lang.String group,
java.lang.String paramName)
Returns a configuration parameter’s value either from the specified group or from the default group.
|
java.lang.String |
removeParam(java.lang.String group,
java.lang.String paramName)
Removes a configuration parameter either from the specified group or from the default group.
It returns the name of the parameter that it removes. |
public void addParam(java.lang.String group,
java.lang.String paramName,
java.lang.String paramValue)
throws InvalidInputException
group - The group to which the configuration parameter is to be added.paramName - The name of the configuration parameter.paramValue - The value of the configuration parameter.InvalidInputException - This exception shall be thrown if paramName is null.public java.lang.String getParamValue(java.lang.String group,
java.lang.String paramName)
throws InvalidInputException
group - The group from which the configuration parameter’s value is to be returned.null, then the default group shall be used.paramName - The name of the configuration parameter.InvalidInputException - This exception shall be thrown if paramName is null.public java.lang.String removeParam(java.lang.String group,
java.lang.String paramName)
throws InvalidInputException
group - The group from which the configuration parameter is to be removed.null, then the default group shall be used.paramName - The name of the configuration parameter.InvalidInputException - This exception shall be thrown if paramName is null.public java.util.Map<java.lang.String,java.lang.String> getGroup(java.lang.String group)
group - The group from which the configuration parameters values is to be returned.null, then the default group will be used.InvalidInputException - This exception shall be thrown if paramName is null.