static class TenpayCertificateService.TenpayCertificateRetrofitFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
baseUrl |
private okhttp3.ConnectionPool |
connectionPool |
private static String |
DEFAULT_BASE_URL |
private okhttp3.logging.HttpLoggingInterceptor.Level |
level |
| Constructor and Description |
|---|
TenpayCertificateRetrofitFactory()
Instantiates a new Wechat pay retrofit factory.
|
TenpayCertificateRetrofitFactory(String baseUrl)
Instantiates a new Wechat pay retrofit factory.
|
TenpayCertificateRetrofitFactory(String baseUrl,
okhttp3.ConnectionPool connectionPool,
okhttp3.logging.HttpLoggingInterceptor.Level level)
Instantiates a new Wechat pay retrofit factory.
|
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Retrofit |
app(AppMerchant appMerchant)
带拦截器的Retrofit客户端
|
private static okhttp3.OkHttpClient |
okHttpClient(AppMerchant appMerchant,
okhttp3.ConnectionPool connectionPool,
okhttp3.logging.HttpLoggingInterceptor.Level level) |
private static final String DEFAULT_BASE_URL
private final String baseUrl
private final okhttp3.ConnectionPool connectionPool
private final okhttp3.logging.HttpLoggingInterceptor.Level level
public TenpayCertificateRetrofitFactory()
public TenpayCertificateRetrofitFactory(String baseUrl)
baseUrl - the base urlpublic TenpayCertificateRetrofitFactory(String baseUrl, okhttp3.ConnectionPool connectionPool, okhttp3.logging.HttpLoggingInterceptor.Level level)
baseUrl - the base urlconnectionPool - the connection poollevel - the levelpublic retrofit2.Retrofit app(AppMerchant appMerchant)
appMerchant - the app merchantprivate static okhttp3.OkHttpClient okHttpClient(AppMerchant appMerchant, okhttp3.ConnectionPool connectionPool, okhttp3.logging.HttpLoggingInterceptor.Level level)
Copyright © 2023. All rights reserved.