public class Retrofit2ConverterFactory
extends retrofit2.Converter.Factory
Constructor and Description |
---|
Retrofit2ConverterFactory() |
Retrofit2ConverterFactory(FastJsonConfig fastJsonConfig) |
public Retrofit2ConverterFactory()
public Retrofit2ConverterFactory(FastJsonConfig fastJsonConfig)
public static Retrofit2ConverterFactory create()
public static Retrofit2ConverterFactory create(FastJsonConfig fastJsonConfig)
public retrofit2.Converter<okhttp3.ResponseBody,Object> responseBodyConverter(Type type, Annotation[] annotations, retrofit2.Retrofit retrofit)
responseBodyConverter
in class retrofit2.Converter.Factory
public retrofit2.Converter<Object,okhttp3.RequestBody> requestBodyConverter(Type type, Annotation[] parameterAnnotations, Annotation[] methodAnnotations, retrofit2.Retrofit retrofit)
requestBodyConverter
in class retrofit2.Converter.Factory
public FastJsonConfig getFastJsonConfig()
public Retrofit2ConverterFactory setFastJsonConfig(FastJsonConfig fastJsonConfig)
@Deprecated public ParserConfig getParserConfig()
FastJsonConfig.getParserConfig()
@Deprecated public Retrofit2ConverterFactory setParserConfig(ParserConfig config)
config
- the configFastJsonConfig.setParserConfig(ParserConfig)
@Deprecated public int getParserFeatureValues()
JSON.DEFAULT_PARSER_FEATURE
@Deprecated public Retrofit2ConverterFactory setParserFeatureValues(int featureValues)
featureValues
- the feature valuesJSON.DEFAULT_PARSER_FEATURE
@Deprecated public Feature[] getParserFeatures()
FastJsonConfig.getFeatures()
@Deprecated public Retrofit2ConverterFactory setParserFeatures(Feature[] features)
features
- the featuresFastJsonConfig.setFeatures(Feature...)
@Deprecated public SerializeConfig getSerializeConfig()
FastJsonConfig.getSerializeConfig()
@Deprecated public Retrofit2ConverterFactory setSerializeConfig(SerializeConfig serializeConfig)
serializeConfig
- the serialize configFastJsonConfig.setSerializeConfig(SerializeConfig)
@Deprecated public SerializerFeature[] getSerializerFeatures()
FastJsonConfig.getSerializerFeatures()
@Deprecated public Retrofit2ConverterFactory setSerializerFeatures(SerializerFeature[] features)
features
- the featuresFastJsonConfig.setSerializerFeatures(SerializerFeature...)
Copyright © 2012–2022 Alibaba Group. All rights reserved.