Class Parameters
- java.lang.Object
-
- com.ibm.security.access.httpclient.Parameters
-
public class Parameters extends java.lang.Object
This class stores the parameters for a HTTP request.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
Parameters_java_copyright
static java.lang.String
Parameters_java_sourceCodeID
static java.lang.String[]
sensitiveKeys
-
Constructor Summary
Constructors Constructor Description Parameters()
Parameters(java.util.Map<java.lang.String,java.util.List<java.lang.String>> initValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addParameter(java.lang.String name, java.lang.String value)
Add a parameterboolean
addParameter(java.lang.String name, java.util.List values)
Add a parameterjava.lang.String[]
getParameter(java.lang.String name)
Get the parameter values with the specified name.java.lang.String[]
getParameterNames()
Get all the parameter names.java.util.Map
getParameters()
Get all the parameters
-
-
-
Field Detail
-
Parameters_java_sourceCodeID
public static final java.lang.String Parameters_java_sourceCodeID
- See Also:
- Constant Field Values
-
Parameters_java_copyright
public static final java.lang.String Parameters_java_copyright
-
sensitiveKeys
public static final java.lang.String[] sensitiveKeys
-
-
Method Detail
-
addParameter
public boolean addParameter(java.lang.String name, java.util.List values)
Add a parameter- Parameters:
name
- Parameter namevalues
- A List(String) of parameter values- Returns:
- True if successful. False otherwise.
-
addParameter
public boolean addParameter(java.lang.String name, java.lang.String value)
Add a parameter- Parameters:
name
- Parameter namevalue
- Parameter value- Returns:
- True if successful. False otherwise.
-
getParameterNames
public java.lang.String[] getParameterNames()
Get all the parameter names. Returns null if there are no parameters.- Returns:
- Parameter names. Null if no parameters.
-
getParameters
public java.util.Map getParameters()
Get all the parameters- Returns:
- A Map(String,List(String)) of all parameters
-
getParameter
public java.lang.String[] getParameter(java.lang.String name)
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.
-
-