Package com.groiss.http
Class Parameter
- All Implemented Interfaces:
KeyValuePair<String,
,String> Serializable
This class is designed to be used to specify parameters (their names and values) for client calls but also to
specify the base headers in the
ClientConfiguration
.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if the parameter values shall be masked when logged or in the result of methodtoString()
toString()
-
Constructor Details
-
Parameter
Creates a new parameter with the given name and value- Parameters:
name
- the name of the parametervalue
- the value of the parameter
-
Parameter
Creates a new parameter with the given name and value- Parameters:
name
- the name of the parametervalue
- the value of the parametermaskValueWhenLogged
- if true the value of this parameter will be masked when logged and also in the result of methodtoString()
-
-
Method Details
-
maskValueWhenLogged
public boolean maskValueWhenLogged()Return true if the parameter values shall be masked when logged or in the result of methodtoString()
- Returns:
- true if masking is required, false otherwise
-
toString
-