Breadcrumbs

parseUrl() Operation

Builder 7.5.0

Syntax


aUrlObject = aUrlString.parseUrl()


Semantics

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

eal_parseurl_class.png

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.

Substitutables

aUrlString

A String containing a valid URL.

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


aUrlObject

An object of type URL.

Error Codes

Find the related error codes on

System Errors

.

FUMSM/32

URL 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>



icon_download_example.png

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



Related Pages: