Package retrofit2.converter.simplexml
Class SimpleXmlConverterFactory
java.lang.Object
retrofit2.Converter.Factory
retrofit2.converter.simplexml.SimpleXmlConverterFactory
@Deprecated
public final class SimpleXmlConverterFactory
extends retrofit2.Converter.Factory
Deprecated.
we recommend switching to the JAXB converter.
A converter which uses Simple Framework for XML.
This converter only applies for class types. Parameterized types (e.g., List<Foo>) are
not handled.
-
Method Summary
Modifier and Type Method Description static SimpleXmlConverterFactorycreate()Deprecated.Create an instance using a defaultPersisterinstance for conversion.static SimpleXmlConverterFactorycreate(org.simpleframework.xml.Serializer serializer)Deprecated.Create an instance usingserializerfor conversion.static SimpleXmlConverterFactorycreateNonStrict()Deprecated.Create an instance using a defaultPersisterinstance for non-strict conversion.static SimpleXmlConverterFactorycreateNonStrict(org.simpleframework.xml.Serializer serializer)Deprecated.Create an instance usingserializerfor non-strict conversion.booleanisStrict()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.
-
Method Details
-
create
Deprecated.Create an instance using a defaultPersisterinstance for conversion. -
create
Deprecated.Create an instance usingserializerfor conversion. -
createNonStrict
Deprecated.Create an instance using a defaultPersisterinstance for non-strict conversion. -
createNonStrict
public static SimpleXmlConverterFactory createNonStrict(org.simpleframework.xml.Serializer serializer)Deprecated.Create an instance usingserializerfor non-strict conversion. -
isStrict
public boolean isStrict()Deprecated. -
responseBodyConverter
public retrofit2.Converter<okhttp3.ResponseBody,?> responseBodyConverter(java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, retrofit2.Retrofit retrofit)Deprecated.- Overrides:
responseBodyConverterin classretrofit2.Converter.Factory
-
requestBodyConverter
@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)Deprecated.- Overrides:
requestBodyConverterin classretrofit2.Converter.Factory
-