DelegatingHttpsURLConnection.java
8.05 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
package com.squareup.okhttp.internal.huc;
import com.squareup.okhttp.Handshake;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.ProtocolException;
import java.net.URL;
import java.security.Permission;
import java.security.Principal;
import java.security.cert.Certificate;
import java.util.List;
import java.util.Map;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLPeerUnverifiedException;
import javax.net.ssl.SSLSocketFactory;
abstract class DelegatingHttpsURLConnection
extends HttpsURLConnection
{
private final HttpURLConnection delegate;
public DelegatingHttpsURLConnection(HttpURLConnection paramHttpURLConnection)
{
super(paramHttpURLConnection.getURL());
this.delegate = paramHttpURLConnection;
}
public void addRequestProperty(String paramString1, String paramString2)
{
this.delegate.addRequestProperty(paramString1, paramString2);
}
public void connect()
throws IOException
{
this.connected = true;
this.delegate.connect();
}
public void disconnect()
{
this.delegate.disconnect();
}
public boolean getAllowUserInteraction()
{
return this.delegate.getAllowUserInteraction();
}
public String getCipherSuite()
{
Handshake localHandshake = handshake();
if (localHandshake != null) {
return localHandshake.cipherSuite();
}
return null;
}
public int getConnectTimeout()
{
return this.delegate.getConnectTimeout();
}
public Object getContent()
throws IOException
{
return this.delegate.getContent();
}
public Object getContent(Class[] paramArrayOfClass)
throws IOException
{
return this.delegate.getContent(paramArrayOfClass);
}
public String getContentEncoding()
{
return this.delegate.getContentEncoding();
}
public int getContentLength()
{
return this.delegate.getContentLength();
}
public String getContentType()
{
return this.delegate.getContentType();
}
public long getDate()
{
return this.delegate.getDate();
}
public boolean getDefaultUseCaches()
{
return this.delegate.getDefaultUseCaches();
}
public boolean getDoInput()
{
return this.delegate.getDoInput();
}
public boolean getDoOutput()
{
return this.delegate.getDoOutput();
}
public InputStream getErrorStream()
{
return this.delegate.getErrorStream();
}
public long getExpiration()
{
return this.delegate.getExpiration();
}
public String getHeaderField(int paramInt)
{
return this.delegate.getHeaderField(paramInt);
}
public String getHeaderField(String paramString)
{
return this.delegate.getHeaderField(paramString);
}
public long getHeaderFieldDate(String paramString, long paramLong)
{
return this.delegate.getHeaderFieldDate(paramString, paramLong);
}
public int getHeaderFieldInt(String paramString, int paramInt)
{
return this.delegate.getHeaderFieldInt(paramString, paramInt);
}
public String getHeaderFieldKey(int paramInt)
{
return this.delegate.getHeaderFieldKey(paramInt);
}
public Map<String, List<String>> getHeaderFields()
{
return this.delegate.getHeaderFields();
}
public abstract HostnameVerifier getHostnameVerifier();
public long getIfModifiedSince()
{
return this.delegate.getIfModifiedSince();
}
public InputStream getInputStream()
throws IOException
{
return this.delegate.getInputStream();
}
public boolean getInstanceFollowRedirects()
{
return this.delegate.getInstanceFollowRedirects();
}
public long getLastModified()
{
return this.delegate.getLastModified();
}
public Certificate[] getLocalCertificates()
{
Object localObject = handshake();
if (localObject == null) {}
do
{
return null;
localObject = ((Handshake)localObject).localCertificates();
} while (((List)localObject).isEmpty());
return (Certificate[])((List)localObject).toArray(new Certificate[((List)localObject).size()]);
}
public Principal getLocalPrincipal()
{
Handshake localHandshake = handshake();
if (localHandshake != null) {
return localHandshake.localPrincipal();
}
return null;
}
public OutputStream getOutputStream()
throws IOException
{
return this.delegate.getOutputStream();
}
public Principal getPeerPrincipal()
throws SSLPeerUnverifiedException
{
Handshake localHandshake = handshake();
if (localHandshake != null) {
return localHandshake.peerPrincipal();
}
return null;
}
public Permission getPermission()
throws IOException
{
return this.delegate.getPermission();
}
public int getReadTimeout()
{
return this.delegate.getReadTimeout();
}
public String getRequestMethod()
{
return this.delegate.getRequestMethod();
}
public Map<String, List<String>> getRequestProperties()
{
return this.delegate.getRequestProperties();
}
public String getRequestProperty(String paramString)
{
return this.delegate.getRequestProperty(paramString);
}
public int getResponseCode()
throws IOException
{
return this.delegate.getResponseCode();
}
public String getResponseMessage()
throws IOException
{
return this.delegate.getResponseMessage();
}
public abstract SSLSocketFactory getSSLSocketFactory();
public Certificate[] getServerCertificates()
throws SSLPeerUnverifiedException
{
Object localObject = handshake();
if (localObject == null) {}
do
{
return null;
localObject = ((Handshake)localObject).peerCertificates();
} while (((List)localObject).isEmpty());
return (Certificate[])((List)localObject).toArray(new Certificate[((List)localObject).size()]);
}
public URL getURL()
{
return this.delegate.getURL();
}
public boolean getUseCaches()
{
return this.delegate.getUseCaches();
}
protected abstract Handshake handshake();
public void setAllowUserInteraction(boolean paramBoolean)
{
this.delegate.setAllowUserInteraction(paramBoolean);
}
public void setChunkedStreamingMode(int paramInt)
{
this.delegate.setChunkedStreamingMode(paramInt);
}
public void setConnectTimeout(int paramInt)
{
this.delegate.setConnectTimeout(paramInt);
}
public void setDefaultUseCaches(boolean paramBoolean)
{
this.delegate.setDefaultUseCaches(paramBoolean);
}
public void setDoInput(boolean paramBoolean)
{
this.delegate.setDoInput(paramBoolean);
}
public void setDoOutput(boolean paramBoolean)
{
this.delegate.setDoOutput(paramBoolean);
}
public void setFixedLengthStreamingMode(int paramInt)
{
this.delegate.setFixedLengthStreamingMode(paramInt);
}
public abstract void setHostnameVerifier(HostnameVerifier paramHostnameVerifier);
public void setIfModifiedSince(long paramLong)
{
this.delegate.setIfModifiedSince(paramLong);
}
public void setInstanceFollowRedirects(boolean paramBoolean)
{
this.delegate.setInstanceFollowRedirects(paramBoolean);
}
public void setReadTimeout(int paramInt)
{
this.delegate.setReadTimeout(paramInt);
}
public void setRequestMethod(String paramString)
throws ProtocolException
{
this.delegate.setRequestMethod(paramString);
}
public void setRequestProperty(String paramString1, String paramString2)
{
this.delegate.setRequestProperty(paramString1, paramString2);
}
public abstract void setSSLSocketFactory(SSLSocketFactory paramSSLSocketFactory);
public void setUseCaches(boolean paramBoolean)
{
this.delegate.setUseCaches(paramBoolean);
}
public String toString()
{
return this.delegate.toString();
}
public boolean usingProxy()
{
return this.delegate.usingProxy();
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/squareup/okhttp/internal/huc/DelegatingHttpsURLConnection.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/