Class ConfigParameters
java.lang.Object
com.netcetera.threeds.sdk.api.configparameters.ConfigParameters
The ConfigParameters class shall represent the configuration
parameters that are required by the 3DS SDK for initialization.
The following are characteristics of the configuration parameters:
- All related configuration parameters can be placed in a single group. Note: A group is not pre-defined. The 3DS SDK implementer can define it to logically group configuration parameters.
- Explicit parameter grouping is optional. If a group name is not provided, then parameters are grouped under a default group.
- Duplicate parameter names cannot be used within a given group or the default group. The 3DS requester App creates a ConfigParameters object and sets the required parameter values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a configuration parameter either to the specified group or to the default group.getParamValue(String group, String paramName) Returns a configuration parameter’s value either from the specified group or from the default group.removeParam(String group, String paramName) Removes a configuration parameter either from the specified group or from the default group.
-
Constructor Details
-
ConfigParameters
public ConfigParameters()Default constructor.
-
-
Method Details
-
addParam
public void addParam(String group, String paramName, String paramValue) throws InvalidInputException Adds a configuration parameter either to the specified group or to the default group.- Parameters:
group-StringGroup to which the configuration parameter is to be added.paramName-StringName of the configuration parameter.paramValue-StringValue of the configuration parameter.- Throws:
InvalidInputException- ifparamNameis null or if the parameter in the group is duplicate.
-
getParamValue
Returns a configuration parameter’s value either from the specified group or from the default group.- Parameters:
group-StringGroup from which the configuration parameter’s value is to be returned.paramName-StringName of the configuration parameter.- Returns:
- the value with the parameters that are found under the specified group name with a semicolon between them.
- Throws:
InvalidInputException- ifparamNameis null.
-
removeParam
Removes a configuration parameter either from the specified group or from the default group.- Parameters:
group-StringGroup from which the configuration parameter is to be removed.paramName-StringName of the configuration parameter.- Returns:
- value of the parameter that it removes.
- Throws:
InvalidInputException- ifparamNameis null.
-