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

Info

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

Assume the following input object aUrlObject :

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

This produces the following output:

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

rp
Panel
titleRelated Pages: