> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# FlexiCaptureWebServiceClient クラス

> FlexiCaptureWebServiceClient クラスのリファレンス: FC 12 Web サービスへの接続、プロジェクトを開く方法、credentials、テナント、timeout の設定。

*FlexiCaptureWebServiceClient* クラスは、*com.abbyy.connectors* 名前空間にあります。*AutoCloseable* クラスを継承しており、FC 12 Web サービスへの接続に使用されます。

このクラスのメソッドについては、以下で説明します。

<div id="constructor-details">
  ## コンストラクターの詳細
</div>

```
public FlexiCaptureWebServiceClient(String url)
```

FC 12 Web サービスに接続するための新しいクライアント オブジェクトを作成します

**パラメーター:**

* url – FC Application Server のアドレスを次の形式で指定します: *http\://\<ApplicationServer>*.

<div id="method-details">
  ## メソッドの詳細
</div>

```
public List<String> getProjectNames()
```

ABBYY FlexiCapture 12 サーバー上にあるプロジェクト名の一覧を返します。

**戻り値:**

* プロジェクト名の一覧

**例外:**

* FlexiCaptureConnectorException – プロジェクト名の一覧の取得中にエラーが発生した場合

```
public FlexiCaptureProject getProject(String name)
```

*name* パラメーター (つまり、ABBYY FlexiCapture 12 サーバー上のプロジェクト名) に基づいてプロジェクトを開き、新しい *FlexiCaptureProject* オブジェクトを作成して返します。

**パラメーター:**

* name – FC 12 サーバー上のプロジェクトの名前

**戻り値:**

* FlexiCaptureProject オブジェクト

**例外:**

* FlexiCaptureConnectorException – プロジェクトを開くときにエラーが発生した場合

***関連項目:***

<img src="https://mintcdn.com/abbyy/jk6a9TGm7KRcVxRI/images/flexi-capture/connectors/see_also.gif?s=f438656d29ffb293fe967e6dd184b256" alt="" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="11" height="12" data-path="images/flexi-capture/connectors/see_also.gif" />[FlexiCaptureProject](/ja/flexi-capture/connectors/pega/pega-class-flexi-capture-project)

```
public String getTenant()
```

テナント の名前を返します。

**戻り値:**

* FC 12 サーバー上の テナント の名前を含む string。デフォルトでは、この string は空です

```
public void setTenant(String tenant)
```

テナント名を設定します。

**パラメーター:**

* tenant – FC 12 サーバー上のテナント名です。このパラメーターはテナントを扱う場合に使用し、root を扱う場合は指定しません。

**スロー:**

* IllegalArgumentException – 入力パラメーターが空または 0 の場合

```
public int getTimeout()
```

サーバーからの応答を待機する時間を返します。

**戻り値:**

* FC 12 サーバーからの応答を待機する時間 (秒単位) 。既定値は 300 秒です

```
public void setTimeout(int timeout)
```

サーバーからの応答を待機する時間 (秒) を設定します。デフォルトのタイムアウト値は 300 秒です。

**パラメーター:**

* timeout – FC 12 サーバーからの応答を待機する時間

**スロー:**

* IllegalArgumentException – 入力パラメーターが 0 以下の場合

```
public Credentials getCredentials()
```

ユーザー名とパスワードを返します。

**戻り値:**

* ユーザー名とパスワードを含むオブジェクト

***関連項目:***

<img src="https://mintcdn.com/abbyy/jk6a9TGm7KRcVxRI/images/flexi-capture/connectors/see_also.gif?s=f438656d29ffb293fe967e6dd184b256" alt="" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="11" height="12" data-path="images/flexi-capture/connectors/see_also.gif" />[Credentials](/ja/flexi-capture/connectors/pega/pega-class-credentials)

```
public void setCredentials(Credentials credentials)
```

ユーザー名とパスワードを設定します。

**パラメーター:**

* credentials – ユーザー名とパスワードを含むオブジェクト

**例外:**

* IllegalArgumentException – 入力パラメーターが空、または 0 の場合

***関連項目:***

<img src="https://mintcdn.com/abbyy/jk6a9TGm7KRcVxRI/images/flexi-capture/connectors/see_also.gif?s=f438656d29ffb293fe967e6dd184b256" alt="" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="11" height="12" data-path="images/flexi-capture/connectors/see_also.gif" />[Credentials](/ja/flexi-capture/connectors/pega/pega-class-credentials)

```
public void close()
```

ABBYY FlexiCapture 12 Web API との接続を閉じます。
