Builder 7.5.0

Syntax
aUrlString = composeUrl(aUrlObject)
Semantics

Build a String containing a URL from an object of type URL.

composeUrl() 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.
SubstitutablesaUrlObject

An object of type URL containing the URL information.

aUrlString

A String containing the URL build from the input object by composeUrl().

composeUrl()does not encode any part of aUrlObject. This must be taken care of by the modeler.

Error CodesFind the related error codes on System Errors.
FUMSM/33URL composing error.
Examples

Input:

<aUrlObject>
    <scheme>https</scheme>
    <host>doc.scheer-pas.com</host>
    <path>dosearchsite.action</path>
    <query>queryString=parseUrl</query>
</aUrlObject>

aUrlString = composeUrl(aUrlObject);

Output:

https://doc.scheer-pas.com:443/dosearchsite.action?queryString=parseUrl

  • No labels