| Modifier and Type | Field and Description |
|---|---|
| private SSLSession |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | connect()
Overrides sun. Implements the HTTP protocol handler's "connect" method, establishing an SSL connection to the server as necessary. |
| public void | disconnect()
Overrides sun. Disconnect from the server (public API) |
| public String | |
| protected abstract HostnameVerifier | |
| protected HttpCallerInfo | getHttpCallerInfo(URL url, String proxy, int port, Authenticator authenticator)
Overrides sun. Overridden in https to also include the server certificate |
| protected HttpCallerInfo | getHttpCallerInfo(URL url, Authenticator authenticator)
Overrides sun. Overridden in https to also include the server certificate |
| public Certificate[] | getLocalCertificates()
Returns the certificate chain the client sent to the server, or null if the client did not authenticate. |
| pack-priv Principal | getLocalPrincipal()
Returns the principal the client sent to the server, or null if the client did not authenticate. |
| private static Principal | getLocalPrincipal(SSLSession
The SSL session session)Returns the principal the client sent to the server, or null if the client did not authenticate. |
| protected HttpClient | getNewHttpClient(URL url, Proxy p, int connectTimeout)
Overrides sun.
|
| protected HttpClient | getNewHttpClient(URL url, Proxy p, int connectTimeout, boolean useCache)
Overrides sun.
|
| pack-priv Principal | getPeerPrincipal()
Returns the server's principal, or throws SSLPeerUnverifiedException if the server did not authenticate. |
| private static Principal | getPeerPrincipal(SSLSession
The SSL session session)Returns the principal with which the server authenticated itself, or throw a SSLPeerUnverifiedException if the server did not authenticate. |
| public Certificate[] | getServerCertificates()
Returns the server's certificate chain, or throws SSLPeerUnverified Exception if the server did not authenticate. |
| pack-priv SSLSession | |
| protected abstract SSLSocketFactory | |
| public boolean | |
| protected void | noResponseBody()
Overrides sun. This method is called when a response with no response body is received, and arrange for the http client to be returned to the pool (or released) immediately when possible. |
| protected void | proxiedConnect(URL url, String proxyHost, int proxyPort, boolean useCache)
Overrides sun.
|
| private SSLSession | |
| public void | |
| public void | setNewClient(URL
the URL being accessed url)Overrides sun. Create a new HttpClient object, bypassing the cache of HTTP client objects/connections. |
| public void | setNewClient(URL
the URL being accessed url, boolean whether the cached connection should be used
if present useCache)Overrides sun. Obtain a HttpClient object. |
| public void | setProxiedClient(URL
the URL being accessed url, String the proxy host to use proxyHost, int the proxy port to use proxyPort)Overrides sun. Create a new HttpClient object, set up so that it uses per-instance proxying to the given HTTP proxy. |
| public void | setProxiedClient(URL
the URL being accessed url, String the proxy host to use proxyHost, int the proxy port to use proxyPort, boolean whether the cached connection should be used
if present useCache)Overrides sun. Obtain a HttpClient object, set up so that it uses per-instance proxying to the given HTTP proxy. |
| private boolean |
| savedSession | back to summary |
|---|---|
| private SSLSession savedSession | |
| AbstractDelegateHttpsURLConnection | back to summary |
|---|---|
| protected AbstractDelegateHttpsURLConnection(URL url, Handler handler) throws IOException | |
| AbstractDelegateHttpsURLConnection | back to summary |
|---|---|
| protected AbstractDelegateHttpsURLConnection(URL url, Proxy p, Handler handler) throws IOException | |
| connect | back to summary |
|---|---|
| public void connect() throws IOException Overrides sun. Implements the HTTP protocol handler's "connect" method, establishing an SSL connection to the server as necessary.
| |
| disconnect | back to summary |
|---|---|
| public void disconnect() Overrides sun. Doc from sun. Disconnect from the server (public API)
| |
| getCipherSuite | back to summary |
|---|---|
| public String getCipherSuite() Returns the cipher suite in use on this connection. | |
| getHostnameVerifier | back to summary |
|---|---|
| protected abstract HostnameVerifier getHostnameVerifier() | |
| getHttpCallerInfo | back to summary |
|---|---|
| protected HttpCallerInfo getHttpCallerInfo(URL url, String proxy, int port, Authenticator authenticator) Overrides sun. Doc from sun. Overridden in https to also include the server certificate
| |
| getHttpCallerInfo | back to summary |
|---|---|
| protected HttpCallerInfo getHttpCallerInfo(URL url, Authenticator authenticator) Overrides sun. Doc from sun. Overridden in https to also include the server certificate
| |
| getLocalCertificates | back to summary |
|---|---|
| public Certificate[] getLocalCertificates() Returns the certificate chain the client sent to the server, or null if the client did not authenticate. | |
| getLocalPrincipal | back to summary |
|---|---|
| pack-priv Principal getLocalPrincipal() Returns the principal the client sent to the server, or null if the client did not authenticate. | |
| getLocalPrincipal | back to summary |
|---|---|
| private static Principal getLocalPrincipal(SSLSession session) Returns the principal the client sent to the server, or null if the client did not authenticate.
| |
| getNewHttpClient | back to summary |
|---|---|
| protected HttpClient getNewHttpClient(URL url, Proxy p, int connectTimeout) throws IOException Overrides sun. | |
| getNewHttpClient | back to summary |
|---|---|
| protected HttpClient getNewHttpClient(URL url, Proxy p, int connectTimeout, boolean useCache) throws IOException Overrides sun. | |
| getPeerPrincipal | back to summary |
|---|---|
| pack-priv Principal getPeerPrincipal() throws SSLPeerUnverifiedException Returns the server's principal, or throws SSLPeerUnverifiedException if the server did not authenticate. | |
| getPeerPrincipal | back to summary |
|---|---|
| private static Principal getPeerPrincipal(SSLSession session) throws SSLPeerUnverifiedException Returns the principal with which the server authenticated itself, or throw a SSLPeerUnverifiedException if the server did not authenticate.
| |
| getServerCertificates | back to summary |
|---|---|
| public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException Returns the server's certificate chain, or throws SSLPeerUnverified Exception if the server did not authenticate. | |
| getSSLSession | back to summary |
|---|---|
| pack-priv SSLSession getSSLSession() | |
| getSSLSocketFactory | back to summary |
|---|---|
| protected abstract SSLSocketFactory getSSLSocketFactory() | |
| isConnected | back to summary |
|---|---|
| public boolean isConnected() Used by subclass to access "connected" variable. | |
| noResponseBody | back to summary |
|---|---|
| protected void noResponseBody() Overrides sun. Doc from sun. This method is called when a response with no response body is received, and arrange for the http client to be returned to the pool (or released) immediately when possible.
| |
| proxiedConnect | back to summary |
|---|---|
| protected void proxiedConnect(URL url, String proxyHost, int proxyPort, boolean useCache) throws IOException Overrides sun. | |
| session | back to summary |
|---|---|
| private SSLSession session() | |
| setConnected | back to summary |
|---|---|
| public void setConnected(boolean conn) Used by subclass to access "connected" variable. | |
| setNewClient | back to summary |
|---|---|
| public void setNewClient(URL url) throws IOException Overrides sun. Create a new HttpClient object, bypassing the cache of HTTP client objects/connections.
| |
| setNewClient | back to summary |
|---|---|
| public void setNewClient(URL url, boolean useCache) throws IOException Overrides sun. Obtain a HttpClient object. Use the cached copy if specified.
| |
| setProxiedClient | back to summary |
|---|---|
| public void setProxiedClient(URL url, String proxyHost, int proxyPort) throws IOException Overrides sun. 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. | |
| setProxiedClient | back to summary |
|---|---|
| public void setProxiedClient(URL url, String proxyHost, int proxyPort, boolean useCache) throws IOException Overrides sun. 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. | |
| useExtendedCallerInfo | back to summary |
|---|---|
| private boolean useExtendedCallerInfo(URL url) | |