Class URLParameter

This class represents a key-value-pair for URL parameters.

Constructor Summary 

ConstructorDescription
URLParameter(String, String)Constructs the parameter using the specified name and value and endocded in the form “name=value”.
URLParameter(String, String, Boolean)Constructs the parameter using the specified name and value.

Method Summary 

Methods inherited from class Object 

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Constructor Details 

URLParameter(String, String) 

URLParameter(aName: String, aValue: String)

Constructs the parameter using the specified name and value and endocded in the form "name=value".

Parameters:

  • aName - the name
  • aValue - the value

URLParameter(String, String, Boolean) 

URLParameter(aName: String, aValue: String, encodeName: Boolean)

Constructs the parameter using the specified name and value. If the "encodeName" is set to true, the parameter is encoded in the form "name=value". Otherwise, it only contains the "value" (needed for URL patterns).

Parameters:

  • aName - the name
  • aValue - the value
  • encodeName - if true, the name will be part of the string form

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!