All Implemented Interfaces:
Serializable, Cloneable, Iterable<Parameter>, Collection<Parameter>, List<Parameter>, RandomAccess, SequencedCollection<Parameter>

public class ParameterListextends Vector<Parameter>
A collection of Parameter objects that extends Vector. This class provides methods to manage and retrieve parameters by name or index, commonly used for handling HTTP query parameters, form data, and headers.
See Also:
  • Constructor Details

    • ParameterList

      public ParameterList()
      Creates a new empty ParameterList.
  • Method Details

    • at

      public Parameter at(int n)
      Gets the Parameter at the specified index.
      Parameters:
      n - the index of the parameter to retrieve
      Returns:
      the Parameter at the specified index
    • getParameter

      public Parameter getParameter(int n)
      Gets the Parameter at the specified index.
      Parameters:
      n - the index of the parameter to retrieve
      Returns:
      the Parameter at the specified index
    • getParameter

      public Parameter getParameter(String name)
      Gets the Parameter with the specified name.
      Parameters:
      name - the name of the parameter to find
      Returns:
      the Parameter with the specified name, or null if not found
    • getValue

      public String getValue(String name)
      Gets the value of the Parameter with the specified name.
      Parameters:
      name - the name of the parameter to find
      Returns:
      the value of the parameter, or empty string if not found