Kagetaka

net.hizlab.kagetaka.protocol.https
クラス SunDelegateHttpsURLConnection

java.lang.Object
  拡張java.net.URLConnection
      拡張java.net.HttpURLConnection
          拡張sun.net.www.protocol.http.HttpURLConnection
              拡張sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection
                  拡張net.hizlab.kagetaka.protocol.https.SunDelegateHttpsURLConnection
すべての実装インタフェース:
ProxySupported

public class SunDelegateHttpsURLConnection
extends sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection
implements ProxySupported

キャッシュをサポートする https プロトコルのコネクションを表します。

バージョン:
$Revision: 1.1 $

フィールドの概要
 
クラス sun.net.www.protocol.http.HttpURLConnection から継承したフィールド
handler, http, pe, ps, userAgent
 
クラス 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, instanceFollowRedirects, method, responseCode, responseMessage
 
クラス java.net.URLConnection から継承したフィールド
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
メソッドの概要
 void connect()
          接続
protected  void doTunneling()
          トンネルを作成
 InputStream getErrorStream()
          エラーの場合のインプットストリームを取得
 String getHeaderField(int n)
          レスポンスヘッダーを取得
 String getHeaderField(String name)
          レスポンスヘッダーを取得
 String getHeaderFieldKey(int n)
          レスポンスヘッダーのキーを取得
 Map getHeaderFields()
          レスポンスヘッダーを取得
protected  HostnameVerifier getHostnameVerifier()
          ホスト名ベリファイアを取得
 InputStream getInputStream()
          インプットストリームを取得
protected  SSLSocketFactory getSSLSocketFactory()
          SSL ソケットファクトリを取得
protected  void plainConnect()
          直接接続
protected  void proxiedConnect(URL url, String proxyHost, int proxyPort, boolean useCache)
          プロキシ経由接続
 void setNewClient(URL url, boolean useCache)
          新しいクライアントを作成
 void setProxiedClient(URL url, String proxyHost, int proxyPort, boolean useCache)
          プロキシコネクト
 void setRequestProperty(String key, String value)
          リクエストプロパティを設定
 
クラス sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection から継承したメソッド
getCipherSuite, getLocalCertificates, getServerCertificateChain, getServerCertificates, isConnected, setConnected, setNewClient, setProxiedClient
 
クラス sun.net.www.protocol.http.HttpURLConnection から継承したメソッド
addRequestProperty, disconnect, finalize, getOutputStream, getRequestProperties, getRequestProperty, openConnectionCheckRedirects, setDefaultAuthenticator, usingProxy
 
クラス java.net.HttpURLConnection から継承したメソッド
getFollowRedirects, getHeaderFieldDate, getInstanceFollowRedirects, getPermission, getRequestMethod, getResponseCode, getResponseMessage, setFollowRedirects, setInstanceFollowRedirects, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

メソッドの詳細

connect

public void connect()
             throws IOException
接続

例外:
IOException

doTunneling

protected void doTunneling()
                    throws IOException
トンネルを作成

例外:
IOException

getErrorStream

public InputStream getErrorStream()
エラーの場合のインプットストリームを取得


getHeaderField

public String getHeaderField(int n)
レスポンスヘッダーを取得


getHeaderField

public String getHeaderField(String name)
レスポンスヘッダーを取得


getHeaderFieldKey

public String getHeaderFieldKey(int n)
レスポンスヘッダーのキーを取得


getHeaderFields

public Map getHeaderFields()
レスポンスヘッダーを取得


getHostnameVerifier

protected HostnameVerifier getHostnameVerifier()
ホスト名ベリファイアを取得


getInputStream

public InputStream getInputStream()
                           throws IOException
インプットストリームを取得

例外:
IOException

getSSLSocketFactory

protected SSLSocketFactory getSSLSocketFactory()
SSL ソケットファクトリを取得


plainConnect

protected void plainConnect()
                     throws IOException
直接接続

例外:
IOException

proxiedConnect

protected void proxiedConnect(URL url,
                              String proxyHost,
                              int proxyPort,
                              boolean useCache)
                       throws IOException
プロキシ経由接続

例外:
IOException

setNewClient

public void setNewClient(URL url,
                         boolean useCache)
                  throws IOException
新しいクライアントを作成

例外:
IOException

setProxiedClient

public void setProxiedClient(URL url,
                             String proxyHost,
                             int proxyPort,
                             boolean useCache)
                      throws IOException
プロキシコネクト

例外:
IOException

setRequestProperty

public void setRequestProperty(String key,
                               String value)
リクエストプロパティを設定


Kagetaka

Copyright (c) 2002-2003 The Kagetaka Project 'December 16, 2003'