public final class JaxbConverterFactory
extends retrofit2.Converter.Factory
| Modifier and Type | Method and Description |
|---|---|
static JaxbConverterFactory |
create()
Create an instance using a default
JAXBContext instance for conversion. |
static JaxbConverterFactory |
create(jakarta.xml.bind.JAXBContext context)
Create an instance using
context for conversion. |
retrofit2.Converter<?,okhttp3.RequestBody> |
requestBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] parameterAnnotations,
java.lang.annotation.Annotation[] methodAnnotations,
retrofit2.Retrofit retrofit) |
retrofit2.Converter<okhttp3.ResponseBody,?> |
responseBodyConverter(java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
retrofit2.Retrofit retrofit) |
public static JaxbConverterFactory create()
JAXBContext instance for conversion.public static JaxbConverterFactory create(jakarta.xml.bind.JAXBContext context)
context for conversion.@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@Nullable
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