---
schema_version: "1"
id: c572a1f143d5db86088d59d8fbc5ffb8ddceba5ab9e8f58f327fd0738dd01b4c
title: isHandledBy
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.8/dw-mime-functions-ishandledby.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.8/dw-mime-functions-ishandledby
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 74b64b0b62d9ab0b8ca026c852742e3979259c2078461adb342c822d6ce1e314
description: MuleSoft Documentation Site
release: "2.8"
latest: false
---
# isHandledBy

## [](#ishandledby1)isHandledBy(base: MimeType, other: MimeType): Boolean

指定された ​`MimeType`​ 値がベース ​`MimeType`​ 値によって処理される場合、​`true`​ を返します。

_DataWeave バージョン 2.7.0 で導入されました。_

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

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 20%;">
<col style="width: 20%;">
<col style="width: 60%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<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>base</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>MimeType</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ベースラインとして使用する MIME タイプ値。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>other</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>MimeType</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">検証する MIME タイプ値。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、MIME タイプでいくつかの検証を処理する方法をテストします。

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

```DataWeave
%dw 2.0
import * from dw::module::Mime
output application/json

var JSON = {'type': "application", subtype: "json", parameters: {}}
var MULTIPART = {'type': "multipart", subtype: "form-data", parameters: {boundary: "my-boundary"}}
var ALL = {'type': "*", subtype: "*", parameters: {}}
---
{
  a: isHandledBy(JSON, JSON),
  b: isHandledBy({'type': "*", subtype: "json", parameters: {}}, JSON),
  c: isHandledBy({'type': "application", subtype: "*", parameters: {}}, JSON),
  d: isHandledBy(ALL, MULTIPART),
  e: isHandledBy(MULTIPART, ALL),
  f: isHandledBy(JSON, MULTIPART),
  g: isHandledBy(
    {'type': "application", subtype: "*+xml", parameters: {}},
    {'type': "application", subtype: "soap+xml", parameters: {}})
}
```

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

```Json
{
  "a": true,
  "b": true,
  "c": true,
  "d": true,
  "e": false,
  "f": false,
  "g": true
}
```