Skip to main content
Skip table of contents

composeUrl() Function

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.

Substitutables

aUrlObject

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 Codes

Find the related error codes on System Errors.

FUMSM/33

URL composing error.

Examples

Assume the following input object aUrlObject:

CODE
{
  "scheme": "https",
  "host": "acme-corp.com",
  "path": "dosearchsite.action",
  "query": "queryString=products"
}
NONE
aUrlString = composeUrl(aUrlObject);

This produces the following output:

https://acme-corp.com:443/dosearchsite.action?queryString=products

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.