Builder 7.5.0

Syntax

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.

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
set aUrlString = "https://doc.scheer-pas.com/display/BRIDGE";
create aUrlobject;

set aUrlObject = aUrlString.parseUrl();

Output:

<aUrlObject>
    <scheme>https</scheme>
    <host>doc.scheer-pas.com</host>
    <port>443</port>
    <path>/display/BRIDGE</path>
</aUrlObject>

Example File (Builder project E2E Action Language/BaseTypes):

<your example path>\E2E Action Language\BaseTypes\uml\string.xml

  • No labels