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 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.
     

    Methods inherited from class retrofit2.Converter.Factory

    getParameterUpperBound, getRawType, stringConverter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • create

      public static SimpleXmlConverterFactory create()
      Deprecated.
      Create an instance using a default Persister instance for conversion.
    • create

      public static SimpleXmlConverterFactory create​(org.simpleframework.xml.Serializer serializer)
      Deprecated.
      Create an instance using serializer for conversion.
    • createNonStrict

      public static SimpleXmlConverterFactory createNonStrict()
      Deprecated.
      Create an instance using a default Persister instance for non-strict conversion.
    • createNonStrict

      public static SimpleXmlConverterFactory createNonStrict​(org.simpleframework.xml.Serializer serializer)
      Deprecated.
      Create an instance using serializer for 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:
      responseBodyConverter in class retrofit2.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:
      requestBodyConverter in class retrofit2.Converter.Factory