TextMessageConverter

interface TextMessageConverter

Converts between text and objects based on a KClass.

Functions

Link copied to clipboard
abstract fun <T : Any> convertFromString(body: String, bodyType: KClass<T>): T

Converts the given body string into an object of type bodyType.

Link copied to clipboard
abstract fun <T : Any> convertToString(body: T, bodyType: KClass<T>): String

Converts the given body object into a string.

Properties

Link copied to clipboard
abstract val mimeType: String

The MIME type produced by this converter (to use as content-type header).

Sources

Link copied to clipboard