Kagetaka

net.hizlab.kagetaka.protocol.http
クラス Hawk2HttpURLConnection

java.lang.Object
  拡張java.net.URLConnection
      拡張java.net.HttpURLConnection
          拡張net.hizlab.kagetaka.protocol.http.HawkHttpURLConnection
              拡張net.hizlab.kagetaka.protocol.http.Hawk2HttpURLConnection
すべての実装インタフェース:
CacheSupported, ProxySupported

public class Hawk2HttpURLConnection
extends HawkHttpURLConnection

Java2 の機能を備えた HTTP クライアントの基本的な機能を提供します。

バージョン:
$Revision: 1.2 $

フィールドの概要
 
クラス net.hizlab.kagetaka.protocol.http.HawkHttpURLConnection から継承したフィールド
ACCEPT_STRING, cacheEntry, http, HTTP_VERSION, inputStream, instanceFollowRedirects, maxRedirects, proxyHost, proxyPort, rememberedException, requests, responseException, responses, usingProxy
 
クラス java.net.HttpURLConnection から継承したフィールド
HTTP_ACCEPTED, HTTP_BAD_GATEWAY, HTTP_BAD_METHOD, HTTP_BAD_REQUEST, HTTP_CLIENT_TIMEOUT, HTTP_CONFLICT, HTTP_CREATED, HTTP_ENTITY_TOO_LARGE, HTTP_FORBIDDEN, HTTP_GATEWAY_TIMEOUT, HTTP_GONE, HTTP_INTERNAL_ERROR, HTTP_LENGTH_REQUIRED, HTTP_MOVED_PERM, HTTP_MOVED_TEMP, HTTP_MULT_CHOICE, HTTP_NO_CONTENT, HTTP_NOT_ACCEPTABLE, HTTP_NOT_AUTHORITATIVE, HTTP_NOT_FOUND, HTTP_NOT_IMPLEMENTED, HTTP_NOT_MODIFIED, HTTP_OK, HTTP_PARTIAL, HTTP_PAYMENT_REQUIRED, HTTP_PRECON_FAILED, HTTP_PROXY_AUTH, HTTP_REQ_TOO_LONG, HTTP_RESET, HTTP_SEE_OTHER, HTTP_SERVER_ERROR, HTTP_UNAUTHORIZED, HTTP_UNAVAILABLE, HTTP_UNSUPPORTED_TYPE, HTTP_USE_PROXY, method, responseCode, responseMessage
 
クラス java.net.URLConnection から継承したフィールド
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
コンストラクタの概要
protected Hawk2HttpURLConnection(URL url, String proxyHost, int proxyPort, URLConnectionCache.Entry cacheEntry)
          HTTP URL コネクションを作成します。
 
メソッドの概要
 void addRequestProperty(String key, String value)
          リクエストプロパティを追加します。
 Map getHeaderFields()
          ヘッダフィールドの変更不可能なマップを返します。
 Map getRequestProperties()
          リクエストプロパティを返します。
 
クラス net.hizlab.kagetaka.protocol.http.HawkHttpURLConnection から継承したメソッド
checkIOException, checkMessageHeader, connect, disconnect, getCachePath, getConnectURL, getDefaultPort, getErrorStream, getHeaderField, getHeaderField, getHeaderFieldKey, getHostHeader, getInputStream, getInstanceFollowRedirects, getOutputStream, getRequestProperty, getResponseCode, plainConnect, proxiedConnect, release, removeCache, setInstanceFollowRedirects, setRequestProperty, setupCache, setupProxy, setupRequests, usingProxy
 
クラス java.net.HttpURLConnection から継承したメソッド
getFollowRedirects, getHeaderFieldDate, getPermission, getRequestMethod, getResponseMessage, setFollowRedirects, setRequestMethod
 
クラス java.net.URLConnection から継承したメソッド
getAllowUserInteraction, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderFieldInt, getIfModifiedSince, getLastModified, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setUseCaches, toString
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

Hawk2HttpURLConnection

protected Hawk2HttpURLConnection(URL url,
                                 String proxyHost,
                                 int proxyPort,
                                 URLConnectionCache.Entry cacheEntry)
HTTP URL コネクションを作成します。

パラメータ:
url - 接続先の URL
proxyHost - プロキシホスト
proxyPort - プロキシポート
cacheEntry - キャッシュエントリ
メソッドの詳細

addRequestProperty

public void addRequestProperty(String key,
                               String value)
リクエストプロパティを追加します。

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

getHeaderFields

public Map getHeaderFields()
ヘッダフィールドの変更不可能なマップを返します。

戻り値:
ヘッダフィールドのマップ
関連項目:
URLConnection.getHeaderFields()

getRequestProperties

public Map getRequestProperties()
リクエストプロパティを返します。

戻り値:
リクエストプロパティ

Kagetaka

Copyright (c) 2002-2004 The Kagetaka Project 'November 20, 2004'