Class Retrofit2ConverterFactory

java.lang.Object
retrofit2.Converter.Factory
com.alibaba.fastjson2.support.retrofit.Retrofit2ConverterFactory

public class Retrofit2ConverterFactory extends retrofit2.Converter.Factory
Fastjson for Retrofit Converter Json Factory.
Since:
2.0.2
Author:
ligboy, wenshao, Victor.Zxy
See Also:
  • Converter.Factory
  • Constructor Details

    • Retrofit2ConverterFactory

      public Retrofit2ConverterFactory()
    • Retrofit2ConverterFactory

      public Retrofit2ConverterFactory(FastJsonConfig fastJsonConfig)
  • Method Details

    • create

      public static Retrofit2ConverterFactory create()
    • create

      public static Retrofit2ConverterFactory create(FastJsonConfig fastJsonConfig)
    • responseBodyConverter

      public retrofit2.Converter<okhttp3.ResponseBody,Object> responseBodyConverter(Type type, Annotation[] annotations, retrofit2.Retrofit retrofit)
      Overrides:
      responseBodyConverter in class retrofit2.Converter.Factory
    • requestBodyConverter

      public retrofit2.Converter<Object,okhttp3.RequestBody> requestBodyConverter(Type type, Annotation[] parameterAnnotations, Annotation[] methodAnnotations, retrofit2.Retrofit retrofit)
      Overrides:
      requestBodyConverter in class retrofit2.Converter.Factory
    • getFastJsonConfig

      public FastJsonConfig getFastJsonConfig()
    • setFastJsonConfig

      public Retrofit2ConverterFactory setFastJsonConfig(FastJsonConfig fastJsonConfig)