Class Parameters
java.lang.Object
com.ibm.security.access.httpclient.Parameters
This class stores the parameters for a HTTP request.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addArrayObject
(Object value) Add an object to an array.boolean
Add full request parameter data as a JSON data string.boolean
addParameter
(String name, Parameters value) Add a nested parameter.boolean
addParameter
(String name, String value) Add a parameterboolean
addParameter
(String name, List values) Add a parameterString[]
getParameter
(String name) Get the parameter values with the specified name.String[]
Get all the parameter names.Get all the parametersboolean
void
setUrlEncode
(boolean value)
-
Field Details
-
Parameters_java_sourceCodeID
- See Also:
-
Parameters_java_copyright
- See Also:
-
sensitiveKeys
-
-
Constructor Details
-
Parameters
public Parameters() -
Parameters
-
-
Method Details
-
addParameter
Add a parameter- Parameters:
name
- Parameter namevalues
- A List(String) of parameter values- Returns:
- True if successful. False otherwise.
-
addParameter
Add a parameter- Parameters:
name
- Parameter namevalue
- Parameter value- Returns:
- True if successful. False otherwise.
-
addParameter
Add a nested parameter.- Parameters:
name
- Parameter namevalue
- Parameter value- Returns:
- True if successful. False otherwise.
-
addArrayObject
Add an object to an array. Eg: [Object1, Object2, Object3] Note: If this method is called then only objects added by this method will be used. All other properties are ignored.- Parameters:
value
- Object value- Returns:
- True if successful. False otherwise.
-
addData
Add full request parameter data as a JSON data string. If this method is used to add data, all other data that is added will be ignored. Note: This method is not supported for nested Parameters.- Parameters:
value
- The JSON data string.- Returns:
- True if successful. False otherwise.
-
getParameterNames
Get all the parameter names. Returns null if there are no parameters.- Returns:
- Parameter names. Null if no parameters.
-
getParameters
Get all the parameters- Returns:
- A Map(String,List(String)) of all parameters
-
getParameter
Get the parameter values with the specified name. Returns null if no such parameter name or name was null/empty string.- Parameters:
name
- The parameter name- Returns:
- A List(String) of values associated with that parameter name. Null if no such parameter name exists or name was null/empty string.
-
setUrlEncode
public void setUrlEncode(boolean value) -
getUrlEncode
public boolean getUrlEncode()
-