Package com.orchestranetworks.service

# Class URLQuery

java.lang.Object
com.orchestranetworks.service.URLQuery

public final class URLQuery extends Object
Represents a list of URL query parameters.

Since:
  5.8.1

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `URLQuery()`
  The default constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `add(String aName, String... values)`
  Appends a query parameter.
  `void`
  `clear()`
  Clears all parameters.
  `String`
  `format()`
  `String`
  `format(String aPrefixIfNotEmpty)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### URLQuery

    public URLQuery()
    The default constructor.

- ## Method Details

  - ### clear

    public void clear()
    Clears all parameters.

  - ### add

    public void add(String aName, String... values)
    Appends a query parameter. If multiple values are provided, the parameter will be added once per value. Existing parameter values will not be modified or removed.
    Parameters:
      `aName` - the parameter's name.
      `values` - the parameter's values.

  - ### format

    public String format()

  - ### format

    public String format(String aPrefixIfNotEmpty)