public final class CustomJacksonConverterFactory
extends retrofit2.Converter.Factory
| 限定符和类型 | 方法和说明 |
|---|---|
static CustomJacksonConverterFactory |
create()
Create an instance using a default
ObjectMapper instance for conversion. |
static CustomJacksonConverterFactory |
create(com.fasterxml.jackson.databind.ObjectMapper mapper)
Create an instance using
mapper for conversion. |
retrofit2.Converter<?,okhttp3.RequestBody> |
requestBodyConverter(Type type,
Annotation[] parameterAnnotations,
Annotation[] methodAnnotations,
retrofit2.Retrofit retrofit) |
retrofit2.Converter<okhttp3.ResponseBody,?> |
responseBodyConverter(Type type,
Annotation[] annotations,
retrofit2.Retrofit retrofit) |
public static CustomJacksonConverterFactory create()
ObjectMapper instance for conversion.public static CustomJacksonConverterFactory create(com.fasterxml.jackson.databind.ObjectMapper mapper)
mapper for conversion.public retrofit2.Converter<okhttp3.ResponseBody,?> responseBodyConverter(Type type, Annotation[] annotations, retrofit2.Retrofit retrofit)
responseBodyConverter 在类中 retrofit2.Converter.Factorypublic retrofit2.Converter<?,okhttp3.RequestBody> requestBodyConverter(Type type, Annotation[] parameterAnnotations, Annotation[] methodAnnotations, retrofit2.Retrofit retrofit)
requestBodyConverter 在类中 retrofit2.Converter.FactoryCopyright © 2023. All rights reserved.