|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.co.fujitsu.reffi.client.swing.model.BaseModel
jp.co.fujitsu.reffi.client.swing.model.AbstractHTTPCore
jp.co.fujitsu.reffi.client.swing.model.HTTPRequestCore
public class HTTPRequestCore
[概 要]
サーバとHTTP通信を行う機能モデルクラスです。[詳 細]
[備 考]
BASIC認証、DIGEST認証、Cookieに関する設定はAbstractHTTPCoreを参照して下さい。
[環 境] JDK 6.0 Update 11
Copyright (c) 2008-2009 FUJITSU Japan All rights reserved.
| フィールドの概要 | |
|---|---|
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 |
| フィールドの詳細 |
|---|
public static final String HTTP_URL_PREFIX
public static final String OBJECT
public static final String BINARY
public static final String PLAIN
| コンストラクタの詳細 |
|---|
public HTTPRequestCore()
[概 要]
コンストラクタです。[詳 細]
フィールドを初期化します。[備 考]
| メソッドの詳細 |
|---|
public String getRequestUrl()
[概 要]
HTTPリクエストを行うURLを返却します。[詳 細]
requestUrlフィールドを返却します。[備 考]
public void setRequestUrl(String requestUrl)
[概 要]
HTTPリクエストを行うURLを設定します。[詳 細]
requestUrlフィールドを設定します。[備 考]
requestUrl - HTTPリクエストを行うURLpublic String getRequestMethod()
[概 要]
HTTPメソッドを返却します。[詳 細]
requestMethodフィールドを返却します。[備 考]
public void setRequestMethod(String requestMethod)
[概 要]
HTTPメソッドを設定します。[詳 細]
requestMethodフィールドを設定します。[備 考]
requestMethod - HTTPメソッドpublic String getResponseType()
[概 要]
HTTPレスポンスをどのように扱うかを返却します。[詳 細]
responseTypeフィールドを返却します。[備 考]
public void setResponseType(String responseType)
[概 要]
HTTPレスポンスをどのように扱うかを設定します。[詳 細]
responseTypeフィールドを設定します。[備 考]
responseType - HTTPレスポンスの扱いpublic Map<String,String> getUrlParameters()
[概 要]
HTTP URLパラメータを返却します。[詳 細]
urlParametersフィールドを返却します。[備 考]
public void setUrlParameters(Map<String,String> urlParameters)
[概 要]
HTTP URLパラメータを設定します。[詳 細]
urlParametersフィールドを設定します。[備 考]
urlParameters - HTTP URLパラメータ
public void addUrlParamteter(String key,
String value)
[概 要]
HTTP URLパラメータを追加します。[詳 細]
urlParametersフィールドにkey=valueの形式で追加します。[備 考]
key - URLパラメータキーvalue - URLパラメータ値public int getResponseCode()
[概 要]
[詳 細]
[備 考]
public void setResponseCode(int responseCode)
[概 要]
[詳 細]
[備 考]
responseCode -
protected void mainproc()
throws IOException
[概 要]
[詳 細]
[備 考]
BaseModel 内の mainprocIOException
protected URLConnection createConnection()
throws IOException
[概 要]
[詳 細]
[備 考]
IOException
protected void createPostParameter(URLConnection httpConn)
throws IOException
[概 要]
[詳 細]
[備 考]
httpConn -
IOException
protected Object createObjectResult(URLConnection httpConn)
throws IOException
[概 要]
[詳 細]
[備 考]
httpConn -
IOException
protected String createPlainResult(URLConnection httpConn)
throws IOException
[概 要]
[詳 細]
[備 考]
httpConn -
IOException
protected void postproc()
throws Exception
[概 要]
[詳 細]
[備 考]
BaseModel 内の postprocException - オーバーライド先で発生する可能性が有る例外
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||