System properties used include:
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final int | |
| private HostnameVerifier | |
| private SSLSession | |
| private SSLSocketFactory |
| Access | Constructor and Description |
|---|---|
| pack-priv | HttpsClient(SSLSocketFactory sf, URL url, Proxy proxy, int connectTimeout)
Create an HTTPS client URL. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| public void | |
| public void | closeServer()
Overrides sun. Close an open connection to the server. |
| protected Socket | createSocket()
Overrides sun. The following method, createSocket, is defined in NetworkClient and overridden here so that the socket factory is used to create new sockets. |
| private String[] | |
| protected int | getDefaultPort()
Overrides sun. Returns the default HTTPS port (443) |
| private String[] | |
| public String | getProxyHostUsed()
Overrides sun. Returns: the proxy host being used for this client, or null if we're not going through a proxy |
| public int | getProxyPortUsed()
Overrides sun. Returns: the proxy port being used for this client. |
| pack-priv SSLSession | |
| public void | handshakeCompleted(HandshakeCompletedEvent event)
Implements javax. This method implements the SSL HandshakeCompleted callback, remembering the resulting session so that it may be queried for the current cipher suite and peer certificates. |
| public boolean | |
| pack-priv static HttpClient | New(SSLSocketFactory sf, URL url, HostnameVerifier hv, String proxyHost, int proxyPort, boolean useCache, int connectTimeout, HttpURLConnection httpuc)
|
| pack-priv static HttpClient | New(SSLSocketFactory sf, URL url, HostnameVerifier hv, Proxy p, boolean useCache, int connectTimeout, HttpURLConnection httpuc)
|
| protected void | |
| private void | |
| private void |
| defaultHVCanonicalName | back to summary |
|---|---|
| private static final String defaultHVCanonicalName | |
| httpsPortNumber | back to summary |
|---|---|
| private static final int httpsPortNumber | |
| hv | back to summary |
|---|---|
| private HostnameVerifier hv | |
| session | back to summary |
|---|---|
| private SSLSession session | |
| sslSocketFactory | back to summary |
|---|---|
| private SSLSocketFactory sslSocketFactory | |
| HttpsClient | back to summary |
|---|---|
| pack-priv HttpsClient(SSLSocketFactory sf, URL url, Proxy proxy, int connectTimeout) throws IOException Create an HTTPS client URL. Traffic will be tunneled through the specified proxy server, with a connect timeout | |
| afterConnect | back to summary |
|---|---|
| public void afterConnect() throws IOException, UnknownHostException Overrides sun.
| |
| checkURLSpoofing | back to summary |
|---|---|
| private void checkURLSpoofing(HostnameVerifier hostnameVerifier) throws IOException | |
| closeIdleConnection | back to summary |
|---|---|
| public void closeIdleConnection() Overrides sun.
| |
| closeServer | back to summary |
|---|---|
| public void closeServer() Overrides sun. Doc from sun. Close an open connection to the server.
| |
| createSocket | back to summary |
|---|---|
| protected Socket createSocket() throws IOException Overrides sun. The following method, createSocket, is defined in NetworkClient and overridden here so that the socket factory is used to create new sockets.
| |
| getCipherSuites | back to summary |
|---|---|
| private String[] getCipherSuites() | |
| getDefaultPort | back to summary |
|---|---|
| protected int getDefaultPort() Overrides sun. Returns the default HTTPS port (443)
| |
| getProtocols | back to summary |
|---|---|
| private String[] getProtocols() | |
| getProxyHostUsed | back to summary |
|---|---|
| public String getProxyHostUsed() Overrides sun. | |
| getProxyPortUsed | back to summary |
|---|---|
| public int getProxyPortUsed() Overrides sun.
| |
| getSSLSession | back to summary |
|---|---|
| pack-priv SSLSession getSSLSession() Returns the | |
| handshakeCompleted | back to summary |
|---|---|
| public void handshakeCompleted(HandshakeCompletedEvent event) Implements javax. This method implements the SSL HandshakeCompleted callback, remembering the resulting session so that it may be queried for the current cipher suite and peer certificates. Servers sometimes re-initiate handshaking, so the session in use on a given connection may change. When sessions change, so may peer identities and cipher suites. | |
| needsTunneling | back to summary |
|---|---|
| public boolean needsTunneling() Overrides sun.
| |
| New | back to summary |
|---|---|
| pack-priv static HttpClient New(SSLSocketFactory sf, URL url, HostnameVerifier hv, String proxyHost, int proxyPort, boolean useCache, int connectTimeout, HttpURLConnection httpuc) throws IOException | |
| New | back to summary |
|---|---|
| pack-priv static HttpClient New(SSLSocketFactory sf, URL url, HostnameVerifier hv, Proxy p, boolean useCache, int connectTimeout, HttpURLConnection httpuc) throws IOException | |
| putInKeepAliveCache | back to summary |
|---|---|
| protected void putInKeepAliveCache() Overrides sun.
| |
| setHostnameVerifier | back to summary |
|---|---|
| private void setHostnameVerifier(HostnameVerifier hv) | |
| setSSLSocketFactory | back to summary |
|---|---|
| private void setSSLSocketFactory(SSLSocketFactory sf) | |