net.hizlab.kagetaka.protocol.https
クラス SunHttpsURLConnection
java.lang.Object
java.net.URLConnection
java.net.HttpURLConnection
javax.net.ssl.HttpsURLConnection
net.hizlab.kagetaka.protocol.https.SunHttpsURLConnection
- すべての実装インタフェース:
- ProxySupported
- public class SunHttpsURLConnection
- extends HttpsURLConnection
- implements ProxySupported
キャッシュをサポートする https
プロトコルのコネクションを表します。
- バージョン:
- $Revision: 1.1 $
クラス 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, HTTP_VERSION, instanceFollowRedirects, method, responseCode, responseMessage |
メソッドの概要 |
void |
addRequestProperty(String key,
String value)
|
void |
connect()
|
void |
disconnect()
|
boolean |
equals(Object obj)
|
protected void |
finalize()
|
boolean |
getAllowUserInteraction()
|
String |
getCipherSuite()
|
Object |
getContent()
|
String |
getContentEncoding()
|
int |
getContentLength()
|
String |
getContentType()
|
long |
getDate()
|
boolean |
getDefaultUseCaches()
|
boolean |
getDoInput()
|
boolean |
getDoOutput()
|
InputStream |
getErrorStream()
|
long |
getExpiration()
|
String |
getHeaderField(int n)
|
String |
getHeaderField(String name)
|
long |
getHeaderFieldDate(String name,
long Default)
|
int |
getHeaderFieldInt(String name,
int Default)
|
String |
getHeaderFieldKey(int n)
|
long |
getIfModifiedSince()
|
InputStream |
getInputStream()
|
boolean |
getInstanceFollowRedirects()
|
long |
getLastModified()
|
Certificate[] |
getLocalCertificates()
|
OutputStream |
getOutputStream()
|
Permission |
getPermission()
|
String |
getRequestMethod()
|
Map |
getRequestProperties()
|
String |
getRequestProperty(String key)
|
int |
getResponseCode()
|
String |
getResponseMessage()
|
X509Certificate[] |
getServerCertificateChain()
|
Certificate[] |
getServerCertificates()
|
URL |
getURL()
|
boolean |
getUseCaches()
|
int |
hashCode()
|
protected boolean |
isConnected()
|
void |
setAllowUserInteraction(boolean allowuserinteraction)
|
protected void |
setConnected(boolean conn)
|
void |
setDefaultUseCaches(boolean defaultusecaches)
|
void |
setDoInput(boolean doinput)
|
void |
setDoOutput(boolean dooutput)
|
void |
setIfModifiedSince(long ifmodifiedsince)
|
void |
setInstanceFollowRedirects(boolean shouldFollow)
|
protected void |
setNewClient(URL url)
|
protected void |
setNewClient(URL url,
boolean useCache)
|
protected void |
setProxiedClient(URL url,
String proxyHost,
int proxyPort)
|
protected void |
setProxiedClient(URL url,
String proxyHost,
int proxyPort,
boolean useCache)
|
void |
setRequestMethod(String method)
|
void |
setRequestProperty(String key,
String value)
|
void |
setUseCaches(boolean usecaches)
|
String |
toString()
|
boolean |
usingProxy()
|
クラス java.net.URLConnection から継承したメソッド |
getContent, getDefaultAllowUserInteraction, getDefaultRequestProperty, getFileNameMap, getHeaderFields, guessContentTypeFromName, guessContentTypeFromStream, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setFileNameMap |
addRequestProperty
public void addRequestProperty(String key,
String value)
connect
public void connect()
throws IOException
- 例外:
IOException
disconnect
public void disconnect()
equals
public boolean equals(Object obj)
finalize
protected void finalize()
throws Throwable
- 例外:
Throwable
getAllowUserInteraction
public boolean getAllowUserInteraction()
getCipherSuite
public String getCipherSuite()
getContent
public Object getContent()
throws IOException
- 例外:
IOException
getContentEncoding
public String getContentEncoding()
getContentLength
public int getContentLength()
getContentType
public String getContentType()
getDate
public long getDate()
getDefaultUseCaches
public boolean getDefaultUseCaches()
getDoInput
public boolean getDoInput()
getDoOutput
public boolean getDoOutput()
getErrorStream
public InputStream getErrorStream()
getExpiration
public long getExpiration()
getHeaderField
public String getHeaderField(int n)
getHeaderField
public String getHeaderField(String name)
getHeaderFieldDate
public long getHeaderFieldDate(String name,
long Default)
getHeaderFieldInt
public int getHeaderFieldInt(String name,
int Default)
getHeaderFieldKey
public String getHeaderFieldKey(int n)
getIfModifiedSince
public long getIfModifiedSince()
getInputStream
public InputStream getInputStream()
throws IOException
- 例外:
IOException
getInstanceFollowRedirects
public boolean getInstanceFollowRedirects()
getLastModified
public long getLastModified()
getLocalCertificates
public Certificate[] getLocalCertificates()
getOutputStream
public OutputStream getOutputStream()
throws IOException
- 例外:
IOException
getPermission
public Permission getPermission()
throws IOException
- 例外:
IOException
getRequestMethod
public String getRequestMethod()
getRequestProperties
public Map getRequestProperties()
getRequestProperty
public String getRequestProperty(String key)
getResponseCode
public int getResponseCode()
throws IOException
- 例外:
IOException
getResponseMessage
public String getResponseMessage()
throws IOException
- 例外:
IOException
getServerCertificateChain
public X509Certificate[] getServerCertificateChain()
getServerCertificates
public Certificate[] getServerCertificates()
throws SSLPeerUnverifiedException
- 例外:
SSLPeerUnverifiedException
getURL
public URL getURL()
getUseCaches
public boolean getUseCaches()
hashCode
public int hashCode()
isConnected
protected boolean isConnected()
setAllowUserInteraction
public void setAllowUserInteraction(boolean allowuserinteraction)
setConnected
protected void setConnected(boolean conn)
setDefaultUseCaches
public void setDefaultUseCaches(boolean defaultusecaches)
setDoInput
public void setDoInput(boolean doinput)
setDoOutput
public void setDoOutput(boolean dooutput)
setIfModifiedSince
public void setIfModifiedSince(long ifmodifiedsince)
setInstanceFollowRedirects
public void setInstanceFollowRedirects(boolean shouldFollow)
setNewClient
protected void setNewClient(URL url)
throws IOException
- 例外:
IOException
setNewClient
protected void setNewClient(URL url,
boolean useCache)
throws IOException
- 例外:
IOException
setProxiedClient
protected void setProxiedClient(URL url,
String proxyHost,
int proxyPort)
throws IOException
- 例外:
IOException
setProxiedClient
protected void setProxiedClient(URL url,
String proxyHost,
int proxyPort,
boolean useCache)
throws IOException
- 例外:
IOException
setRequestMethod
public void setRequestMethod(String method)
throws ProtocolException
- 例外:
ProtocolException
setRequestProperty
public void setRequestProperty(String key,
String value)
setUseCaches
public void setUseCaches(boolean usecaches)
toString
public String toString()
usingProxy
public boolean usingProxy()
Copyright (c) 2002-2003 The Kagetaka Project 'December 16, 2003'