public class NetworkListener
extends okhttp3.EventListener
| 构造器和说明 |
|---|
NetworkListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
callEnd(okhttp3.Call call) |
void |
callFailed(okhttp3.Call call,
IOException ioe) |
void |
callStart(okhttp3.Call call) |
void |
connectEnd(okhttp3.Call call,
InetSocketAddress inetSocketAddress,
Proxy proxy,
okhttp3.Protocol protocol) |
void |
connectFailed(okhttp3.Call call,
InetSocketAddress inetSocketAddress,
Proxy proxy,
okhttp3.Protocol protocol,
IOException ioe) |
void |
connectStart(okhttp3.Call call,
InetSocketAddress inetSocketAddress,
Proxy proxy) |
void |
dnsEnd(okhttp3.Call call,
String domainName,
List<InetAddress> inetAddressList) |
void |
dnsStart(okhttp3.Call call,
String domainName) |
static okhttp3.EventListener.Factory |
get() |
void |
requestBodyEnd(okhttp3.Call call,
long byteCount) |
void |
requestBodyStart(okhttp3.Call call) |
void |
requestHeadersEnd(okhttp3.Call call,
okhttp3.Request request) |
void |
requestHeadersStart(okhttp3.Call call) |
void |
responseBodyEnd(okhttp3.Call call,
long byteCount) |
void |
responseBodyStart(okhttp3.Call call) |
void |
responseHeadersEnd(okhttp3.Call call,
okhttp3.Response response) |
void |
responseHeadersStart(okhttp3.Call call) |
void |
secureConnectEnd(okhttp3.Call call,
okhttp3.Handshake handshake) |
void |
secureConnectStart(okhttp3.Call call) |
public static okhttp3.EventListener.Factory get()
public void callStart(@NotNull
okhttp3.Call call)
callStart 在类中 okhttp3.EventListenerpublic void dnsStart(@NotNull
okhttp3.Call call,
@NotNull
String domainName)
dnsStart 在类中 okhttp3.EventListenerpublic void dnsEnd(@NotNull
okhttp3.Call call,
@NotNull
String domainName,
@NotNull
List<InetAddress> inetAddressList)
dnsEnd 在类中 okhttp3.EventListenerpublic void connectStart(@NotNull
okhttp3.Call call,
@NotNull
InetSocketAddress inetSocketAddress,
@NotNull
Proxy proxy)
connectStart 在类中 okhttp3.EventListenerpublic void secureConnectStart(@NotNull
okhttp3.Call call)
secureConnectStart 在类中 okhttp3.EventListenerpublic void secureConnectEnd(@NotNull
okhttp3.Call call,
@Nullable
okhttp3.Handshake handshake)
secureConnectEnd 在类中 okhttp3.EventListenerpublic void connectEnd(@NotNull
okhttp3.Call call,
@NotNull
InetSocketAddress inetSocketAddress,
@NotNull
Proxy proxy,
@Nullable
okhttp3.Protocol protocol)
connectEnd 在类中 okhttp3.EventListenerpublic void connectFailed(@NotNull
okhttp3.Call call,
@NotNull
InetSocketAddress inetSocketAddress,
@NotNull
Proxy proxy,
@Nullable
okhttp3.Protocol protocol,
@NotNull
IOException ioe)
connectFailed 在类中 okhttp3.EventListenerpublic void requestHeadersStart(@NotNull
okhttp3.Call call)
requestHeadersStart 在类中 okhttp3.EventListenerpublic void requestHeadersEnd(@NotNull
okhttp3.Call call,
@NotNull
okhttp3.Request request)
requestHeadersEnd 在类中 okhttp3.EventListenerpublic void requestBodyStart(@NotNull
okhttp3.Call call)
requestBodyStart 在类中 okhttp3.EventListenerpublic void requestBodyEnd(@NotNull
okhttp3.Call call,
long byteCount)
requestBodyEnd 在类中 okhttp3.EventListenerpublic void responseHeadersStart(@NotNull
okhttp3.Call call)
responseHeadersStart 在类中 okhttp3.EventListenerpublic void responseHeadersEnd(@NotNull
okhttp3.Call call,
@NotNull
okhttp3.Response response)
responseHeadersEnd 在类中 okhttp3.EventListenerpublic void responseBodyStart(@NotNull
okhttp3.Call call)
responseBodyStart 在类中 okhttp3.EventListenerpublic void responseBodyEnd(@NotNull
okhttp3.Call call,
long byteCount)
responseBodyEnd 在类中 okhttp3.EventListenerpublic void callEnd(@NotNull
okhttp3.Call call)
callEnd 在类中 okhttp3.EventListenerpublic void callFailed(@NotNull
okhttp3.Call call,
@NotNull
IOException ioe)
callFailed 在类中 okhttp3.EventListenerCopyright © 2022. All rights reserved.