Class ConfigParameters
- java.lang.Object
-
- com.netcetera.threeds.sdk.api.configparameters.ConfigParameters
-
public class ConfigParameters extends java.lang.ObjectThe 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 Constructor Description ConfigParameters()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParam(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.lang.StringgetParamValue(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.StringremoveParam(java.lang.String group, java.lang.String paramName)Removes a configuration parameter either from the specified group or from the default group.
-
-
-
Method Detail
-
addParam
public void addParam(java.lang.String group, java.lang.String paramName, java.lang.String paramValue) throws InvalidInputExceptionAdds 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
public java.lang.String getParamValue(java.lang.String group, java.lang.String paramName) throws InvalidInputExceptionReturns 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
public java.lang.String removeParam(java.lang.String group, java.lang.String paramName) throws InvalidInputExceptionRemoves 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.
-
-