Contact Free trial Login


parseURI(String): URI

Parses a URL and returns a URI object.

The isValid: Boolean property in the output URI object indicates whether the parsing process succeeded. Every field in this object is optional, and a field will appear in the output only if it was present in the URL input.


Name Description


The URI input.


This example parses a URL.


%dw 2.0
import * from dw::core::URL
output application/json
  'composition': parseURI('')


  "composition": {
    "isValid": true,
    "raw": "",
    "host": "",
    "authority": "",
    "fragment": "footer",
    "path": "/wiki/Uniform_Resource_Identifier",
    "scheme": "https",
    "isAbsolute": true,
    "isOpaque": false

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.