HttpsURLConnectionImpl.java
2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package com.squareup.okhttp.internal.huc;
import com.squareup.okhttp.Handshake;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Response;
import com.squareup.okhttp.internal.http.HttpEngine;
import java.net.URL;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSocketFactory;
public final class HttpsURLConnectionImpl
extends DelegatingHttpsURLConnection
{
private final HttpURLConnectionImpl delegate;
public HttpsURLConnectionImpl(HttpURLConnectionImpl paramHttpURLConnectionImpl)
{
super(paramHttpURLConnectionImpl);
this.delegate = paramHttpURLConnectionImpl;
}
public HttpsURLConnectionImpl(URL paramURL, OkHttpClient paramOkHttpClient)
{
this(new HttpURLConnectionImpl(paramURL, paramOkHttpClient));
}
public final long getContentLengthLong()
{
return this.delegate.getContentLengthLong();
}
public final long getHeaderFieldLong(String paramString, long paramLong)
{
return this.delegate.getHeaderFieldLong(paramString, paramLong);
}
public final HostnameVerifier getHostnameVerifier()
{
return this.delegate.client.getHostnameVerifier();
}
public final SSLSocketFactory getSSLSocketFactory()
{
return this.delegate.client.getSslSocketFactory();
}
protected final Handshake handshake()
{
if (this.delegate.httpEngine == null) {
throw new IllegalStateException("Connection has not yet been established");
}
if (this.delegate.httpEngine.hasResponse()) {
return this.delegate.httpEngine.getResponse().handshake();
}
return this.delegate.handshake;
}
public final void setFixedLengthStreamingMode(long paramLong)
{
this.delegate.setFixedLengthStreamingMode(paramLong);
}
public final void setHostnameVerifier(HostnameVerifier paramHostnameVerifier)
{
this.delegate.client.setHostnameVerifier(paramHostnameVerifier);
}
public final void setSSLSocketFactory(SSLSocketFactory paramSSLSocketFactory)
{
this.delegate.client.setSslSocketFactory(paramSSLSocketFactory);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/squareup/okhttp/internal/huc/HttpsURLConnectionImpl.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/