Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WDESIGNER and version 24.0

Syntax

Code Block
languagenone
aUrlObject = aUrlString.parseUrl()
Semantics

Parses an URL given in a String variable into the following data structure:

parseUrl() uses the following defaults:

  • If no scheme/protocol is given, https is supplied as default scheme.
  • If not given, the port is derived from the scheme/protocol, e.g. 443 for https.

Apart from these defaults: not given elements will be NULL in the data structure.

SubstitutablesaUrlString

A String containing a valid URL.

Info

parseUrl()does not decode any part of aUrlString. This must be taken care of by the modeler.

aUrlObjectAn object of type URL.
Error CodesFind the related error codes on System Errors.
FUMSM/32URL parsing error.
Examples

Assume the following input URL string aUrlString: https://acme-corp.com/products

Code Block
languagenone
create aUrlobject;
set aUrlObject = aUrlString.parseUrl();

 This produces the following output:

{
"scheme": "https",
"host": "acme-corp.com",
"port:" "443",
"path": "products"
}

rp
Panel
titleRelated Pages: