public enum DebugLoggingInterceptor extends Enum<DebugLoggingInterceptor> implements okhttp3.Interceptor
| 限定符和类型 | 类和说明 |
|---|---|
static class |
DebugLoggingInterceptor.Level
定义日志打印级别
|
| 枚举常量和说明 |
|---|
INSTANCE |
| 限定符和类型 | 方法和说明 |
|---|---|
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
void |
setLoggingLevel(DebugLoggingInterceptor.Level loggingLevel) |
static DebugLoggingInterceptor |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static DebugLoggingInterceptor[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DebugLoggingInterceptor INSTANCE
public static DebugLoggingInterceptor[] values()
for (DebugLoggingInterceptor c : DebugLoggingInterceptor.values()) System.out.println(c);
public static DebugLoggingInterceptor valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public void setLoggingLevel(DebugLoggingInterceptor.Level loggingLevel)
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept 在接口中 okhttp3.InterceptorIOExceptionCopyright © 2017. All rights reserved.