public final class OkHttpsURLConnection extends DelegatingHttpsURLConnection
| Modifier and Type | Field and Description |
|---|---|
private OkHttpURLConnection |
delegate |
chunkLength, fixedContentLength, fixedContentLengthLong, 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| Constructor and Description |
|---|
OkHttpsURLConnection(OkHttpURLConnection delegate) |
OkHttpsURLConnection(java.net.URL url,
OkHttpClient client) |
OkHttpsURLConnection(java.net.URL url,
OkHttpClient client,
URLFilter filter) |
| Modifier and Type | Method and Description |
|---|---|
javax.net.ssl.HostnameVerifier |
getHostnameVerifier() |
javax.net.ssl.SSLSocketFactory |
getSSLSocketFactory() |
protected Handshake |
handshake() |
void |
setHostnameVerifier(javax.net.ssl.HostnameVerifier hostnameVerifier) |
void |
setSSLSocketFactory(javax.net.ssl.SSLSocketFactory sslSocketFactory) |
addRequestProperty, connect, disconnect, getAllowUserInteraction, getCipherSuite, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultUseCaches, getDoInput, getDoOutput, getErrorStream, getExpiration, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getInputStream, getInstanceFollowRedirects, getLastModified, getLocalCertificates, getLocalPrincipal, getOutputStream, getPeerPrincipal, getPermission, getReadTimeout, getRequestMethod, getRequestProperties, getRequestProperty, getResponseCode, getResponseMessage, getServerCertificates, getURL, getUseCaches, setAllowUserInteraction, setChunkedStreamingMode, setConnectTimeout, setDefaultUseCaches, setDoInput, setDoOutput, setFixedLengthStreamingMode, setFixedLengthStreamingMode, setIfModifiedSince, setInstanceFollowRedirects, setReadTimeout, setRequestMethod, setRequestProperty, setUseCaches, toString, usingProxygetDefaultHostnameVerifier, getDefaultSSLSocketFactory, setDefaultHostnameVerifier, setDefaultSSLSocketFactoryprivate final OkHttpURLConnection delegate
public OkHttpsURLConnection(java.net.URL url,
OkHttpClient client)
public OkHttpsURLConnection(java.net.URL url,
OkHttpClient client,
URLFilter filter)
public OkHttpsURLConnection(OkHttpURLConnection delegate)
protected Handshake handshake()
handshake in class DelegatingHttpsURLConnectionpublic void setHostnameVerifier(javax.net.ssl.HostnameVerifier hostnameVerifier)
setHostnameVerifier in class DelegatingHttpsURLConnectionpublic javax.net.ssl.HostnameVerifier getHostnameVerifier()
getHostnameVerifier in class DelegatingHttpsURLConnectionpublic void setSSLSocketFactory(javax.net.ssl.SSLSocketFactory sslSocketFactory)
setSSLSocketFactory in class DelegatingHttpsURLConnectionpublic javax.net.ssl.SSLSocketFactory getSSLSocketFactory()
getSSLSocketFactory in class DelegatingHttpsURLConnection