Class Parameter

java.lang.Object
com.groiss.ds.Pair<String,String>
com.groiss.http.Parameter
All Implemented Interfaces:
KeyValuePair<String,String>, Serializable

public class Parameter extends Pair<String,String>
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:
  • Constructor Details

    • Parameter

      public Parameter(String name, String value)
      Creates a new parameter with the given name and value
      Parameters:
      name - the name of the parameter
      value - the value of the parameter
    • Parameter

      public Parameter(String name, String value, boolean maskValueWhenLogged)
      Creates a new parameter with the given name and value
      Parameters:
      name - the name of the parameter
      value - the value of the parameter
      maskValueWhenLogged - if true the value of this parameter will be masked when logged and also in the result of method toString()
  • Method Details

    • maskValueWhenLogged

      public boolean maskValueWhenLogged()
      Return true if the parameter values shall be masked when logged or in the result of method toString()
      Returns:
      true if masking is required, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Pair<String,String>