public final class WechatMpRetrofitFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
private static String |
BASE_URL |
static retrofit2.Retrofit |
RETROFIT_ |
| Modifier | Constructor and Description |
|---|---|
private |
WechatMpRetrofitFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends TokenApi> |
create(T tokenApi,
okhttp3.ConnectionPool connectionPool,
okhttp3.logging.HttpLoggingInterceptor.Level level)
带TokenApi拦截器的Retrofit客户端
|
private static okhttp3.OkHttpClient |
okHttpClient(okhttp3.logging.HttpLoggingInterceptor.Level level) |
private static okhttp3.OkHttpClient |
okHttpClient(TokenApi tokenApi,
okhttp3.ConnectionPool connectionPool,
okhttp3.logging.HttpLoggingInterceptor.Level level) |
private static final String BASE_URL
public static final retrofit2.Retrofit RETROFIT_
public static <T extends TokenApi> retrofit2.Retrofit create(T tokenApi, okhttp3.ConnectionPool connectionPool, okhttp3.logging.HttpLoggingInterceptor.Level level)
T - the type parametertokenApi - the token apiconnectionPool - the connection poollevel - the levelprivate static okhttp3.OkHttpClient okHttpClient(TokenApi tokenApi, okhttp3.ConnectionPool connectionPool, okhttp3.logging.HttpLoggingInterceptor.Level level)
private static okhttp3.OkHttpClient okHttpClient(okhttp3.logging.HttpLoggingInterceptor.Level level)
Copyright © 2024. All rights reserved.