Interface IParameterMap
public interface IParameterMap
A ParameterMap can be used to define the values for parameters of an query.
Call IGetRequest.createParameterMap() to create an empty ParameterMap. To add a ParameterMap
to a request, call IGetRequest.setParameters(..).
-
Method Summary
Modifier and TypeMethodDescriptionvoidThis method can be used to add a single value parameter.voidputCollection(String name, List<?> values) This method can be used to add a collection of values or ranges.voidThis method can be used to add a range parameter.
-
Method Details
-
put
This method can be used to add a single value parameter.- Parameters:
name- The name of the parameter, without the @ sign.value- The value of the parameter.
-
putRange
This method can be used to add a range parameter.- Parameters:
name- The name of the parameter, without the @ sign.start- The start value of the parameter.end- The end value of the parameter.
-
putCollection
This method can be used to add a collection of values or ranges. A range can be defined by an array of two items.- Parameters:
name- The name of the parameter, without the @ sign.values- The collection of values or ranges for this parameter.
-