java.lang.Object | ||||
↳ | java.net.URLConnection | |||
↳ | java.net.HttpURLConnection | |||
↳ | sun.net.www.protocol.http.HttpURLConnection | |||
↳ | sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection |
![]() |
HTTPS URL connection support. We need this delegate because HttpsURLConnection is a subclass of java.net.HttpURLConnection. We will avoid copying over the code from sun.net.www.protocol.http.HttpURLConnection by having this class
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Implements the HTTP protocol handler's "connect" method,
establishing an SSL connection to the server as necessary.
| |||||||||||
Returns the cipher suite in use on this connection.
| |||||||||||
Returns the certificate chain the client sent to the
server, or null if the client did not authenticate.
| |||||||||||
Returns the server's X.509 certificate chain, or null if
the server did not authenticate.
| |||||||||||
Returns the server's certificate chain, or throws
SSLPeerUnverified Exception if
the server did not authenticate.
| |||||||||||
Used by subclass to access "connected" variable.
| |||||||||||
Used by subclass to access "connected" variable.
| |||||||||||
Create a new HttpClient object, bypassing the cache of
HTTP client objects/connections.
| |||||||||||
Obtain a HttpClient object.
| |||||||||||
Create a new HttpClient object, set up so that it uses
per-instance proxying to the given HTTP proxy.
| |||||||||||
Obtain a HttpClient object, set up so that it uses per-instance
proxying to the given HTTP proxy.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Implements the HTTP protocol handler's "connect" method, establishing an SSL connection to the server as necessary.
IOException |
---|
Returns the certificate chain the client sent to the server, or null if the client did not authenticate.
Returns the server's X.509 certificate chain, or null if the server did not authenticate.
SSLPeerUnverifiedException |
---|
Returns the server's certificate chain, or throws SSLPeerUnverified Exception if the server did not authenticate.
SSLPeerUnverifiedException |
---|
Used by subclass to access "connected" variable.
Used by subclass to access "connected" variable.
Create a new HttpClient object, bypassing the cache of HTTP client objects/connections. Note: this method is changed from protected to public because the com.sun.ssl.internal.www.protocol.https handler reuses this class for its actual implemantation
url | the URL being accessed |
---|
IOException |
---|
Obtain a HttpClient object. Use the cached copy if specified. Note: this method is changed from protected to public because the com.sun.ssl.internal.www.protocol.https handler reuses this class for its actual implemantation
url | the URL being accessed |
---|---|
useCache | whether the cached connection should be used if present |
IOException |
---|
Create a new HttpClient object, set up so that it uses per-instance proxying to the given HTTP proxy. This bypasses the cache of HTTP client objects/connections. Note: this method is changed from protected to public because the com.sun.ssl.internal.www.protocol.https handler reuses this class for its actual implemantation
url | the URL being accessed |
---|---|
proxyHost | the proxy host to use |
proxyPort | the proxy port to use |
IOException |
---|
Obtain a HttpClient object, set up so that it uses per-instance proxying to the given HTTP proxy. Use the cached copy of HTTP client objects/connections if specified. Note: this method is changed from protected to public because the com.sun.ssl.internal.www.protocol.https handler reuses this class for its actual implemantation
url | the URL being accessed |
---|---|
proxyHost | the proxy host to use |
proxyPort | the proxy port to use |
useCache | whether the cached connection should be used if present |
IOException |
---|
IOException |
---|
IOException |
---|