---
schema_version: "1"
id: 6fe09e9363d2e124fa45ca59645887fbd22929330993d1a0e1ec4f6daef56125
title: Servlet Connector
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/servlet-connector/latest/index.md
canonical_url: https://docs.mulesoft.com/jp/servlet-connector/latest/
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ba8a22b1866f8c098e7acd464edebf4650edffa3c6f5a8ea7fc3e14b5aa1eb28
description: MuleSoft Documentation Site
release: 0.3.9
latest: true
---
# Servlet Connector

Servlet Connector により、Mule アプリケーションは Servlet 要求を使用して受診したメッセージやイベントをリスンできます。

最低でも、イベントまたはメッセージを受信する Servlet へのパスを指定してください。Path プロパティは、\[General (一般)\] タブで設定します。

## [](#このコネクタのインストール方法)このコネクタのインストール方法

1. Anypoint Studio で、Studio タスクバーの Exchange アイコンをクリックします。
2. Anypoint Exchange で \[Login (ログイン)\] をクリックします。
3. コネクタを検索して \[Install (インストール)\] をクリックします。
4. 画面の指示に従ってコネクタをインストールします。

Studio の更新がある場合、右下隅にメッセージが表示されます。メッセージをクリックすると、更新をインストールできます。

### [](#general-一般-タブ)\[General (一般)\] タブ

![studio servlet gen](/mulesoft/current/ja-jp/servlet-connector/latest/_images/studio-servlet-gen.png)

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 50%;">
<col style="width: 50%;">
</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"><strong>Display Name (表示名)</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">デフォルトは汎用エンドポイント名 (この場合は Servlet) です。​<code>Interactive Survey Connection</code>​ などのエンドポイントの特定のロールを反映させるには、表示名を変更する必要があります。表示名は英数字にする必要があります。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Path (パス)</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Servlet エンドポイントがクライアント Web ページと通信するチャネルを指定します。例: <code>/services/echo</code>​。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Connector Configuration (コネクタ設定)</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ドロップダウンリストを使用して、このエンドポイント用に以前に設定されたコネクタ設定を選択します。このエンドポイント種別のコネクタ設定を作成していない場合、このウィンドウから ​<strong>[Add (追加)]</strong>​ をクリックして作成できます。以前に作成したグローバル要素を変更するには、​<strong>[Edit (編集)]</strong>​ をクリックします。</p></td>
</tr>
</tbody>
</table>

### [](#advanced-詳細-タブ)\[Advanced (詳細)\] タブ

![studio servlet adv](/mulesoft/current/ja-jp/servlet-connector/latest/_images/studio-servlet-adv.png)

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 50%;">
<col style="width: 50%;">
</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"><strong>Address (住所)</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code><a href="http://localhost:8000/file" class="bare">http://localhost:8000/file</a></code>​ など、このエンドポイントのアドレスを入力します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Response Timeout (応答タイムアウト)</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">エンドポイントが応答を待機する必要がある時間 (ミリ秒) を指定します。デフォルトは ​<strong>10000</strong>​ ミリ秒です。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Encoding (エンコード)</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ドロップダウンリストから、メッセージデータに使用する文字セット。(UTF-8 など)。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Disable Transport Transformer (トランスポートトランスフォーマーを無効化)</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">エンドポイントのデフォルトの応答トランスポートを​<em>使用しない</em>​場合、このボックスをオンにします。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>MIME Type (MIME タイプ)</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ドロップダウンリストから、このエンドポイントでサポートされる形式の 1 つを選択します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Connector Endpoint (コネクタエンドポイント)</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">ドロップダウンリストを使用して、以前に設定されたグローバルエンドポイントテンプレートを選択します (存在する場合)。このエンドポイントの種別用のグローバル要素を作成していない場合、​<strong>[Add (追加)]</strong>​ をクリックして、表示されるペインの項目に入力します。以前に作成したグローバル要素を変更するには、​<strong>[Edit (編集)]</strong>​ をクリックします。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Enable default events tracking (デフォルトイベント追跡を有効化)</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">このエンドポイントのデフォルト​<a href="#3.9@mule-runtime::business-events.adoc" class="xref unresolved">ビジネスイベント</a>​追跡を有効にします。</p></td>
</tr>
</tbody>
</table>

### [](#transformers-トランスフォーマー-タブ)\[Transformers (トランスフォーマー)\] タブ

![studio servlet trans](/mulesoft/current/ja-jp/servlet-connector/latest/_images/studio-servlet-trans.png)

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 50%;">
<col style="width: 50%;">
</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"><strong>Request Transformer References (要求トランスフォーマー参照)</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">要求をトランスポートに送信する前に要求に適用する同期トランスフォーマーのリストを入力します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Response Transformer References (応答トランスフォーマー参照)</strong></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">応答をトランスポートから返す前に応答に適用する同期トランスフォーマーのリストを入力します。</p></td>
</tr>
</tbody>
</table>

## [](#関連情報)関連情報

- XML エディターを使用した Servlet エンドポイントプロパティ設定の詳細は、​[「Servlet トランスポートリファレンス」](#3.9@mule-runtime::servlet-transport-reference.adoc)​を参照してください。
- [Exchange の Servlet Connector](https://www.mulesoft.com/exchange/68ef9520-24e9-4cf2-b2f5-620025690913/servlet-connector/)