程序包 gateway.api
类 GsonConverterFactory
java.lang.Object
retrofit2.Converter.Factory
gateway.api.GsonConverterFactory
public class GsonConverterFactory
extends retrofit2.Converter.Factory
JSON应答转换工厂
- 作者:
- neeker
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final GsonConverterFactory.DateToStringConverterprivate final com.google.gson.Gson -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static GsonConverterFactorycreate()Create an instance using a defaultGsoninstance for conversion.static GsonConverterFactoryCreate an instance usinggsonfor 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) retrofit2.Converter<?,String> stringConverter(Type type, Annotation[] annotations, retrofit2.Retrofit retrofit) 从类继承的方法 retrofit2.Converter.Factory
getParameterUpperBound, getRawType
-
字段详细资料
-
gson
private final com.google.gson.Gson gson -
dateToStringConverter
-
-
构造器详细资料
-
GsonConverterFactory
-
-
方法详细资料
-
create
Create an instance using a defaultGsoninstance for conversion. Encoding to JSON and decoding from JSON (when no charset is specified by a header) will use UTF-8. -
create
Create an instance usinggsonfor conversion. Encoding to JSON and decoding from JSON (when no charset is specified by a header) will use UTF-8. -
responseBodyConverter
public retrofit2.Converter<okhttp3.ResponseBody,?> responseBodyConverter(Type type, Annotation[] annotations, retrofit2.Retrofit retrofit) - 覆盖:
responseBodyConverter在类中retrofit2.Converter.Factory
-
requestBodyConverter
public retrofit2.Converter<?,okhttp3.RequestBody> requestBodyConverter(Type type, Annotation[] parameterAnnotations, Annotation[] methodAnnotations, retrofit2.Retrofit retrofit) - 覆盖:
requestBodyConverter在类中retrofit2.Converter.Factory
-
stringConverter
public retrofit2.Converter<?,String> stringConverter(Type type, Annotation[] annotations, retrofit2.Retrofit retrofit) - 覆盖:
stringConverter在类中retrofit2.Converter.Factory
-