public class RetrofitConfigBean extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private List<retrofit2.CallAdapter.Factory> |
callAdapterFactories |
private List<retrofit2.Converter.Factory> |
converterFactories |
private Collection<BaseGlobalInterceptor> |
globalInterceptors |
private HttpExceptionMessageFormatterInterceptor |
httpExceptionMessageFormatterInterceptor |
private Map<String,okhttp3.ConnectionPool> |
poolRegistry |
private RetrofitProperties |
retrofitProperties |
| 构造器和说明 |
|---|
RetrofitConfigBean(RetrofitProperties retrofitProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<retrofit2.CallAdapter.Factory> |
getCallAdapterFactories() |
List<retrofit2.Converter.Factory> |
getConverterFactories() |
Collection<BaseGlobalInterceptor> |
getGlobalInterceptors() |
HttpExceptionMessageFormatterInterceptor |
getHttpExceptionMessageFormatterInterceptor() |
Map<String,okhttp3.ConnectionPool> |
getPoolRegistry() |
RetrofitProperties |
getRetrofitProperties() |
void |
setCallAdapterFactories(List<retrofit2.CallAdapter.Factory> callAdapterFactories) |
void |
setConverterFactories(List<retrofit2.Converter.Factory> converterFactories) |
void |
setGlobalInterceptors(Collection<BaseGlobalInterceptor> globalInterceptors) |
void |
setHttpExceptionMessageFormatterInterceptor(HttpExceptionMessageFormatterInterceptor httpExceptionMessageFormatterInterceptor) |
void |
setPoolRegistry(Map<String,okhttp3.ConnectionPool> poolRegistry) |
private final RetrofitProperties retrofitProperties
private HttpExceptionMessageFormatterInterceptor httpExceptionMessageFormatterInterceptor
private List<retrofit2.CallAdapter.Factory> callAdapterFactories
private List<retrofit2.Converter.Factory> converterFactories
private Collection<BaseGlobalInterceptor> globalInterceptors
public RetrofitConfigBean(RetrofitProperties retrofitProperties)
public RetrofitProperties getRetrofitProperties()
public HttpExceptionMessageFormatterInterceptor getHttpExceptionMessageFormatterInterceptor()
public void setHttpExceptionMessageFormatterInterceptor(HttpExceptionMessageFormatterInterceptor httpExceptionMessageFormatterInterceptor)
public List<retrofit2.CallAdapter.Factory> getCallAdapterFactories()
public void setCallAdapterFactories(List<retrofit2.CallAdapter.Factory> callAdapterFactories)
public List<retrofit2.Converter.Factory> getConverterFactories()
public void setConverterFactories(List<retrofit2.Converter.Factory> converterFactories)
public Collection<BaseGlobalInterceptor> getGlobalInterceptors()
public void setGlobalInterceptors(Collection<BaseGlobalInterceptor> globalInterceptors)
Copyright © 2020. All rights reserved.