Address.java
6.37 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
package com.squareup.okhttp;
import com.squareup.okhttp.internal.Util;
import java.net.Proxy;
import java.net.ProxySelector;
import java.util.List;
import javax.net.SocketFactory;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSocketFactory;
public final class Address
{
final Authenticator authenticator;
final CertificatePinner certificatePinner;
final List<ConnectionSpec> connectionSpecs;
final Dns dns;
final HostnameVerifier hostnameVerifier;
final List<Protocol> protocols;
final Proxy proxy;
final ProxySelector proxySelector;
final SocketFactory socketFactory;
final SSLSocketFactory sslSocketFactory;
final String uriHost;
final int uriPort;
public Address(String paramString, int paramInt, Dns paramDns, SocketFactory paramSocketFactory, SSLSocketFactory paramSSLSocketFactory, HostnameVerifier paramHostnameVerifier, CertificatePinner paramCertificatePinner, Authenticator paramAuthenticator, Proxy paramProxy, List<Protocol> paramList, List<ConnectionSpec> paramList1, ProxySelector paramProxySelector)
{
if (paramString == null) {
throw new NullPointerException("uriHost == null");
}
this.uriHost = paramString;
if (paramInt <= 0) {
throw new IllegalArgumentException("uriPort <= 0: " + paramInt);
}
this.uriPort = paramInt;
if (paramDns == null) {
throw new IllegalArgumentException("dns == null");
}
this.dns = paramDns;
if (paramSocketFactory == null) {
throw new IllegalArgumentException("socketFactory == null");
}
this.socketFactory = paramSocketFactory;
if (paramAuthenticator == null) {
throw new IllegalArgumentException("authenticator == null");
}
this.authenticator = paramAuthenticator;
if (paramList == null) {
throw new IllegalArgumentException("protocols == null");
}
this.protocols = Util.immutableList(paramList);
if (paramList1 == null) {
throw new IllegalArgumentException("connectionSpecs == null");
}
this.connectionSpecs = Util.immutableList(paramList1);
if (paramProxySelector == null) {
throw new IllegalArgumentException("proxySelector == null");
}
this.proxySelector = paramProxySelector;
this.proxy = paramProxy;
this.sslSocketFactory = paramSSLSocketFactory;
this.hostnameVerifier = paramHostnameVerifier;
this.certificatePinner = paramCertificatePinner;
}
public final boolean equals(Object paramObject)
{
boolean bool2 = false;
boolean bool1 = bool2;
if ((paramObject instanceof Address))
{
paramObject = (Address)paramObject;
bool1 = bool2;
if (this.uriHost.equals(((Address)paramObject).uriHost))
{
bool1 = bool2;
if (this.uriPort == ((Address)paramObject).uriPort)
{
bool1 = bool2;
if (this.dns.equals(((Address)paramObject).dns))
{
bool1 = bool2;
if (this.authenticator.equals(((Address)paramObject).authenticator))
{
bool1 = bool2;
if (this.protocols.equals(((Address)paramObject).protocols))
{
bool1 = bool2;
if (this.connectionSpecs.equals(((Address)paramObject).connectionSpecs))
{
bool1 = bool2;
if (this.proxySelector.equals(((Address)paramObject).proxySelector))
{
bool1 = bool2;
if (Util.equal(this.proxy, ((Address)paramObject).proxy))
{
bool1 = bool2;
if (Util.equal(this.sslSocketFactory, ((Address)paramObject).sslSocketFactory))
{
bool1 = bool2;
if (Util.equal(this.hostnameVerifier, ((Address)paramObject).hostnameVerifier))
{
bool1 = bool2;
if (Util.equal(this.certificatePinner, ((Address)paramObject).certificatePinner)) {
bool1 = true;
}
}
}
}
}
}
}
}
}
}
}
}
return bool1;
}
public final Authenticator getAuthenticator()
{
return this.authenticator;
}
public final CertificatePinner getCertificatePinner()
{
return this.certificatePinner;
}
public final List<ConnectionSpec> getConnectionSpecs()
{
return this.connectionSpecs;
}
public final Dns getDns()
{
return this.dns;
}
public final HostnameVerifier getHostnameVerifier()
{
return this.hostnameVerifier;
}
public final List<Protocol> getProtocols()
{
return this.protocols;
}
public final Proxy getProxy()
{
return this.proxy;
}
public final ProxySelector getProxySelector()
{
return this.proxySelector;
}
public final SocketFactory getSocketFactory()
{
return this.socketFactory;
}
public final SSLSocketFactory getSslSocketFactory()
{
return this.sslSocketFactory;
}
public final String getUriHost()
{
return this.uriHost;
}
public final int getUriPort()
{
return this.uriPort;
}
public final int hashCode()
{
int m = 0;
int n = this.uriHost.hashCode();
int i1 = this.uriPort;
int i2 = this.dns.hashCode();
int i3 = this.authenticator.hashCode();
int i4 = this.protocols.hashCode();
int i5 = this.connectionSpecs.hashCode();
int i6 = this.proxySelector.hashCode();
int i;
int j;
if (this.proxy != null)
{
i = this.proxy.hashCode();
if (this.sslSocketFactory == null) {
break label197;
}
j = this.sslSocketFactory.hashCode();
label97:
if (this.hostnameVerifier == null) {
break label202;
}
}
label197:
label202:
for (int k = this.hostnameVerifier.hashCode();; k = 0)
{
if (this.certificatePinner != null) {
m = this.certificatePinner.hashCode();
}
return (k + (j + (i + (((((((n + 527) * 31 + i1) * 31 + i2) * 31 + i3) * 31 + i4) * 31 + i5) * 31 + i6) * 31) * 31) * 31) * 31 + m;
i = 0;
break;
j = 0;
break label97;
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/squareup/okhttp/Address.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/