jp.co.fujitsu.reffi.client.swing.model
クラス HTTPRequestCore

java.lang.Object
  上位を拡張 jp.co.fujitsu.reffi.client.swing.model.BaseModel
      上位を拡張 jp.co.fujitsu.reffi.client.swing.model.AbstractHTTPCore
          上位を拡張 jp.co.fujitsu.reffi.client.swing.model.HTTPRequestCore
すべての実装されたインタフェース:
Callable<Object>, Model

public class HTTPRequestCore
extends AbstractHTTPCore

[概 要]

サーバとHTTP通信を行う機能モデルクラスです。

[詳 細]

[備 考]

BASIC認証、DIGEST認証、Cookieに関する設定はAbstractHTTPCoreを参照して下さい。

[環 境] JDK 6.0 Update 11

Copyright (c) 2008-2009 FUJITSU Japan All rights reserved.

作成者:
Project Reffi

フィールドの概要
static String BINARY
          HTTPレスポンスがバイナリであることを示す定数です。
static String HTTP_URL_PREFIX
          HTTPプレフィックスを示す定数です。
static String OBJECT
          HTTPレスポンスをデシリアライズすることを示す定数です。
static String PLAIN
          HTTPレスポンスがプレーンテキストであることを示す定数です。
 
コンストラクタの概要
HTTPRequestCore()
          [概 要] コンストラクタです。
 
メソッドの概要
 void addUrlParamteter(String key, String value)
          [概 要] HTTP URLパラメータを追加します。
protected  URLConnection createConnection()
          [概 要] [詳 細] [備 考]
protected  Object createObjectResult(URLConnection httpConn)
          [概 要] [詳 細] [備 考]
protected  String createPlainResult(URLConnection httpConn)
          [概 要] [詳 細] [備 考]
protected  void createPostParameter(URLConnection httpConn)
          [概 要] [詳 細] [備 考]
 String getRequestMethod()
          [概 要] HTTPメソッドを返却します。
 String getRequestUrl()
          [概 要] HTTPリクエストを行うURLを返却します。
 int getResponseCode()
          [概 要] [詳 細] [備 考]
 String getResponseType()
          [概 要] HTTPレスポンスをどのように扱うかを返却します。
 Map<String,String> getUrlParameters()
          [概 要] HTTP URLパラメータを返却します。
protected  void mainproc()
          [概 要] [詳 細] [備 考]
protected  void postproc()
          [概 要] [詳 細] [備 考]
 void setRequestMethod(String requestMethod)
          [概 要] HTTPメソッドを設定します。
 void setRequestUrl(String requestUrl)
          [概 要] HTTPリクエストを行うURLを設定します。
 void setResponseCode(int responseCode)
          [概 要] [詳 細] [備 考]
 void setResponseType(String responseType)
          [概 要] HTTPレスポンスをどのように扱うかを設定します。
 void setUrlParameters(Map<String,String> urlParameters)
          [概 要] HTTP URLパラメータを設定します。
 
クラス jp.co.fujitsu.reffi.client.swing.model.AbstractHTTPCore から継承されたメソッド
createCookieString, getAuthPassword, getAuthUser, isSendCookie, removeAuthentication, setAuthentication, setSendCookie
 
クラス jp.co.fujitsu.reffi.client.swing.model.BaseModel から継承されたメソッド
addModelProcessListener, call, done, finalproc, fireModelFailure, fireModelFinished, fireModelSuccess, getController, getExecuteIndex, getListenerList, getParameterMapping, getResult, getSuccessCount, incrementSuccessCount, init, isAsync, isSkip, preproc, removeModelProcessListener, run, setAsync, setController, setExecuteIndex, setListenerList, setParameterMapping, setResult, setSkip, trap
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

HTTP_URL_PREFIX

public static final String HTTP_URL_PREFIX
HTTPプレフィックスを示す定数です。

関連項目:
定数フィールド値

OBJECT

public static final String OBJECT
HTTPレスポンスをデシリアライズすることを示す定数です。

関連項目:
定数フィールド値

BINARY

public static final String BINARY
HTTPレスポンスがバイナリであることを示す定数です。

関連項目:
定数フィールド値

PLAIN

public static final String PLAIN
HTTPレスポンスがプレーンテキストであることを示す定数です。

関連項目:
定数フィールド値
コンストラクタの詳細

HTTPRequestCore

public HTTPRequestCore()

[概 要]

コンストラクタです。

[詳 細]

フィールドを初期化します。

[備 考]

メソッドの詳細

getRequestUrl

public String getRequestUrl()

[概 要]

HTTPリクエストを行うURLを返却します。

[詳 細]

requestUrlフィールドを返却します。

[備 考]

戻り値:

setRequestUrl

public void setRequestUrl(String requestUrl)

[概 要]

HTTPリクエストを行うURLを設定します。

[詳 細]

requestUrlフィールドを設定します。

[備 考]

パラメータ:
requestUrl - HTTPリクエストを行うURL

getRequestMethod

public String getRequestMethod()

[概 要]

HTTPメソッドを返却します。

[詳 細]

requestMethodフィールドを返却します。

[備 考]

戻り値:
HTTPメソッド

setRequestMethod

public void setRequestMethod(String requestMethod)

[概 要]

HTTPメソッドを設定します。

[詳 細]

requestMethodフィールドを設定します。

[備 考]

パラメータ:
requestMethod - HTTPメソッド

getResponseType

public String getResponseType()

[概 要]

HTTPレスポンスをどのように扱うかを返却します。

[詳 細]

responseTypeフィールドを返却します。

[備 考]

戻り値:
HTTPレスポンスの扱い

setResponseType

public void setResponseType(String responseType)

[概 要]

HTTPレスポンスをどのように扱うかを設定します。

[詳 細]

responseTypeフィールドを設定します。

[備 考]

パラメータ:
responseType - HTTPレスポンスの扱い

getUrlParameters

public Map<String,String> getUrlParameters()

[概 要]

HTTP URLパラメータを返却します。

[詳 細]

urlParametersフィールドを返却します。

[備 考]

戻り値:
HTTP URLパラメータ

setUrlParameters

public void setUrlParameters(Map<String,String> urlParameters)

[概 要]

HTTP URLパラメータを設定します。

[詳 細]

urlParametersフィールドを設定します。

[備 考]

パラメータ:
urlParameters - HTTP URLパラメータ

addUrlParamteter

public void addUrlParamteter(String key,
                             String value)

[概 要]

HTTP URLパラメータを追加します。

[詳 細]

urlParametersフィールドにkey=valueの形式で追加します。

[備 考]

パラメータ:
key - URLパラメータキー
value - URLパラメータ値

getResponseCode

public int getResponseCode()

[概 要]

[詳 細]

[備 考]

戻り値:

setResponseCode

public void setResponseCode(int responseCode)

[概 要]

[詳 細]

[備 考]

パラメータ:
responseCode -

mainproc

protected void mainproc()
                 throws IOException

[概 要]

[詳 細]

[備 考]

オーバーライド:
クラス BaseModel 内の mainproc
例外:
IOException

createConnection

protected URLConnection createConnection()
                                  throws IOException

[概 要]

[詳 細]

[備 考]

戻り値:
例外:
IOException

createPostParameter

protected void createPostParameter(URLConnection httpConn)
                            throws IOException

[概 要]

[詳 細]

[備 考]

パラメータ:
httpConn -
例外:
IOException

createObjectResult

protected Object createObjectResult(URLConnection httpConn)
                             throws IOException

[概 要]

[詳 細]

[備 考]

パラメータ:
httpConn -
戻り値:
例外:
IOException

createPlainResult

protected String createPlainResult(URLConnection httpConn)
                            throws IOException

[概 要]

[詳 細]

[備 考]

パラメータ:
httpConn -
戻り値:
例外:
IOException

postproc

protected void postproc()
                 throws Exception

[概 要]

[詳 細]

[備 考]

オーバーライド:
クラス BaseModel 内の postproc
例外:
Exception - オーバーライド先で発生する可能性が有る例外


Copyright(C) Fujitsu All Rights Reserved.