|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.net.URLConnection
java.net.HttpURLConnection
net.hizlab.kagetaka.net.HttpURLConnectionWrapper
net.hizlab.kagetaka.net.HttpURLConnectionWrapper12
Java2(1.2 以降)の機能を備えた HttpURLConnection
ラッパーです。
フィールドの概要 |
クラス net.hizlab.kagetaka.net.HttpURLConnectionWrapper から継承したフィールド |
connection, inputStream |
クラス java.net.URLConnection から継承したフィールド |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
コンストラクタの概要 | |
HttpURLConnectionWrapper12(URL url,
HttpURLConnection connection,
InputStream is)
新しいインスタンスを作成します。 |
メソッドの概要 | |
void |
addRequestProperty(String key,
String value)
リクエストプロパティを追加します。 |
Object |
getContent(Class[] classes)
この URL 接続のコンテンツを取得します。 |
InputStream |
getErrorStream()
HTTP エラーが発生した場合(レスポンスコードが 400 以上)に、 入力ストリームを返します。 |
boolean |
getInstanceFollowRedirects()
リダイレクトを行うかどうかを返します。 |
Permission |
getPermission()
このオブジェクトが表す接続の実行に必要なアクセス権を表す、 Permission オブジェクトを返します。 |
Map |
getRequestProperties()
リクエストプロパティを返します。 |
void |
setInstanceFollowRedirects(boolean followRedirects)
リダイレクトを行うかどうかを設定します。 |
クラス java.net.HttpURLConnection から継承したメソッド |
getFollowRedirects, setFollowRedirects |
クラス java.lang.Object から継承したメソッド |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public HttpURLConnectionWrapper12(URL url, HttpURLConnection connection, InputStream is)
url
- URLconnection
- コネクションis
- 入力ストリーム。
connection
から取得する場合は
null
メソッドの詳細 |
public void addRequestProperty(String key, String value)
key
- キーvalue
- 値
IllegalStateException
- すでに接続されている場合
NullPointerException
- キーが null
の場合URLConnection.addRequestProperty(String, String)
public Object getContent(Class[] classes) throws IOException
classes
- 要求されたタイプを示す Class
配列
null
IOException
- サーバへの接続でエラーが発生した場合
UnknownServiceException
- プロトコルがそのコンテンツ形式をサポートしていない場合URLConnection.getContent(Class[])
public InputStream getErrorStream()
HttpURLConnection.getErrorStream()
public boolean getInstanceFollowRedirects()
true
、
しない場合は false
HttpURLConnection.getInstanceFollowRedirects()
public Permission getPermission() throws IOException
Permission
オブジェクトを返します。
Permission
オブジェクト
IOException
- アクセス権の処理にネットワーク
またはファイル入出力が必要なときに、処理中に例外が発生した場合URLConnection.getPermission()
public Map getRequestProperties()
IllegalStateException
- すでに接続されている場合URLConnection.getRequestProperties()
public void setInstanceFollowRedirects(boolean followRedirects)
followRedirects
- リダイレクトする場合は true
、
しない場合は false
HttpURLConnection.setInstanceFollowRedirects(boolean)
|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright (c) 2002-2004 The Kagetaka Project 'November 20, 2004'