@Deprecated
public final class SimpleXmlConverterFactory
extends retrofit2.Converter.Factory
This converter only applies for class types. Parameterized types (e.g., List<Foo>
) are
not handled.
Modifier and Type | Method and Description |
---|---|
static SimpleXmlConverterFactory |
create()
Deprecated.
Create an instance using a default
Persister instance for conversion. |
static SimpleXmlConverterFactory |
create(org.simpleframework.xml.Serializer serializer)
Deprecated.
Create an instance using
serializer for conversion. |
static SimpleXmlConverterFactory |
createNonStrict()
Deprecated.
Create an instance using a default
Persister instance for non-strict conversion. |
static SimpleXmlConverterFactory |
createNonStrict(org.simpleframework.xml.Serializer serializer)
Deprecated.
Create an instance using
serializer for non-strict conversion. |
boolean |
isStrict()
Deprecated.
|
retrofit2.Converter<?,okhttp3.RequestBody> |
requestBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] parameterAnnotations,
java.lang.annotation.Annotation[] methodAnnotations,
retrofit2.Retrofit retrofit)
Deprecated.
|
retrofit2.Converter<okhttp3.ResponseBody,?> |
responseBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
retrofit2.Retrofit retrofit)
Deprecated.
|
public static SimpleXmlConverterFactory create()
Persister
instance for conversion.public static SimpleXmlConverterFactory create(org.simpleframework.xml.Serializer serializer)
serializer
for conversion.public static SimpleXmlConverterFactory createNonStrict()
Persister
instance for non-strict conversion.public static SimpleXmlConverterFactory createNonStrict(org.simpleframework.xml.Serializer serializer)
serializer
for non-strict conversion.public boolean isStrict()
public retrofit2.Converter<okhttp3.ResponseBody,?> responseBodyConverter(java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, retrofit2.Retrofit retrofit)
responseBodyConverter
in class retrofit2.Converter.Factory
@Nullable public retrofit2.Converter<?,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.Factory