---
schema_version: "1"
id: d0406cfd32331510144fd069ca2ace9a8264c9382f7d9bd2a134c69193a737ff
title: parseURI
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-url-functions-parseuri.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-url-functions-parseuri
source_site: docs.mulesoft.com
content_type: documentation
content_hash: af6d9341c9cfa26a5de20c383431daa534dbebd3c5b8b2e53db1362ab6ec0405
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
# parseURI

## [](#parseuri1)parseURI(uri: String): URI

URL を解析し、​`URI`​ オブジェクトを返します。

出力 ​`URI`​ オブジェクトの ​`isValid: Boolean`​ プロパティは、解析プロセスが成功したかどうかを示します。このオブジェクトのすべての項目は省略可能で、項目は URL 入力に存在する場合のみ出力に表示されます。

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<code>uri</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">URI 入力。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

この例では、URL を解析します。

#### [](#ソース)ソース

```DataWeave
%dw 2.0
import * from dw::core::URL
output application/json
---
{
  'composition': parseURI('https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#footer')
}
```

#### [](#出力)出力

```JSON
{
  "composition": {
    "isValid": true,
    "raw": "https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#footer",
    "host": "en.wikipedia.org",
    "authority": "en.wikipedia.org",
    "fragment": "footer",
    "path": "/wiki/Uniform_Resource_Identifier",
    "scheme": "https",
    "isAbsolute": true,
    "isOpaque": false
  }
}
```