java.lang.Object
org.cybergarage.http.Parameter

public class Parameterextends Object
Represents a name-value parameter pair used in HTTP requests and responses. This class provides a simple container for storing parameter names and their corresponding values, commonly used for query parameters, form data, and HTTP headers.
  • Field Details

    • name

      private String name
      The parameter's name.
    • value

      private String value
      The parameter's value.
  • Constructor Details

    • Parameter

      public Parameter()
      Creates a new empty Parameter with null name and value.
    • Parameter

      public Parameter(String name, String value)
      Creates a new Parameter with the specified name and value.
      Parameters:
      name - the parameter name
      value - the parameter value
  • Method Details

    • setName

      public void setName(String name)
      Sets the parameter name.
      Parameters:
      name - the parameter name to set
    • getName

      public String getName()
      Gets the parameter name.
      Returns:
      the parameter name
    • setValue

      public void setValue(String value)
      Sets the parameter value.
      Parameters:
      value - the parameter value to set
    • getValue

      public String getValue()
      Gets the parameter value.
      Returns:
      the parameter value