jp.go.nict.langrid.servicesupervisor.invocationprocessor.executor
クラス ServiceInvoker

java.lang.Object
  上位を拡張 jp.go.nict.langrid.servicesupervisor.invocationprocessor.executor.ServiceInvoker

public class ServiceInvoker
extends Object

言語グリッドWebサービスを呼び出し、結果を返す。 認証に対応する。

バージョン:
$Revision: 12212 $
作成者:
$Author: Takao Nakaguchi $

コンストラクタの概要
ServiceInvoker()
           
 
メソッドの概要
static int invoke(URL url, String userName, String password, Map<String,String> headers, InputStream input, javax.servlet.http.HttpServletResponse output, OutputStream errorOut, int connectionTimeout, int soTimeout)
          サービスを呼び出す。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ServiceInvoker

public ServiceInvoker()
メソッドの詳細

invoke

public static int invoke(URL url,
                         String userName,
                         String password,
                         Map<String,String> headers,
                         InputStream input,
                         javax.servlet.http.HttpServletResponse output,
                         OutputStream errorOut,
                         int connectionTimeout,
                         int soTimeout)
                  throws IOException,
                         SocketTimeoutException
サービスを呼び出す。

パラメータ:
url - URL
headers - HTTPヘッダ
userName - 認証ユーザ名
password - 認証パスワード
input - サービスに送信するリクエスト
output - レスポンスの書き出し先
errorOut - 失敗時のレスポンス書き出し先
connectionTimeout - 接続タイムアウト
soTimeout - 読み出しタイムアウト
戻り値:
ステータスコード
例外:
IOException - 呼び出しに失敗した
SocketTimeoutException - タイムアウトが発生した