AbstractXmlSerializer

Common base class for XML serializers.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val supportedMediaTypes: List<MediaType>

A list of MIME types this serializer supports.

Functions

Link copied to clipboard
abstract fun <T> deserialize(body: ResponseBody, type: Type): T?

Deserializes an entity.

Link copied to clipboard
open fun <T> deserializeList(body: ResponseBody, elementType: Type): List<T>?

Deserializes a list of entities.

Link copied to clipboard
abstract fun <T> serialize(entity: T, type: Type): RequestBody

Serializes an entity.

Link copied to clipboard
open fun <T> serializeList(entities: Iterable<T>, elementType: Type): RequestBody

Serializes a list of entities.