public class Retrofit2ConverterFactory
extends retrofit2.Converter.Factory
Converter.Factory| Modifier and Type | Class and Description |
|---|---|
(package private) class |
Retrofit2ConverterFactory.RequestBodyConverter<T> |
(package private) class |
Retrofit2ConverterFactory.ResponseBodyConverter<T> |
| Modifier and Type | Field and Description |
|---|---|
private FastJsonConfig |
config |
private static okhttp3.MediaType |
MEDIA_TYPE |
| Constructor and Description |
|---|
Retrofit2ConverterFactory() |
Retrofit2ConverterFactory(FastJsonConfig fastJsonConfig) |
| Modifier and Type | Method and Description |
|---|---|
static Retrofit2ConverterFactory |
create() |
static Retrofit2ConverterFactory |
create(FastJsonConfig fastJsonConfig) |
FastJsonConfig |
getFastJsonConfig() |
retrofit2.Converter<java.lang.Object,okhttp3.RequestBody> |
requestBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] parameterAnnotations,
java.lang.annotation.Annotation[] methodAnnotations,
retrofit2.Retrofit retrofit) |
retrofit2.Converter<okhttp3.ResponseBody,java.lang.Object> |
responseBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
retrofit2.Retrofit retrofit) |
Retrofit2ConverterFactory |
setFastJsonConfig(FastJsonConfig fastJsonConfig) |
private static final okhttp3.MediaType MEDIA_TYPE
private FastJsonConfig config
public Retrofit2ConverterFactory()
public Retrofit2ConverterFactory(FastJsonConfig fastJsonConfig)
public static Retrofit2ConverterFactory create()
public static Retrofit2ConverterFactory create(FastJsonConfig fastJsonConfig)
public retrofit2.Converter<okhttp3.ResponseBody,java.lang.Object> responseBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
retrofit2.Retrofit retrofit)
responseBodyConverter in class retrofit2.Converter.Factorypublic retrofit2.Converter<java.lang.Object,okhttp3.RequestBody> requestBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] parameterAnnotations,
java.lang.annotation.Annotation[] methodAnnotations,
retrofit2.Retrofit retrofit)
requestBodyConverter in class retrofit2.Converter.Factorypublic FastJsonConfig getFastJsonConfig()
public Retrofit2ConverterFactory setFastJsonConfig(FastJsonConfig fastJsonConfig)