ConfigurableJacksonYaml

open class ConfigurableJacksonYaml(val mapper: ObjectMapper, val defaultContentType: ContentType = TEXT_YAML) : AutoMarshalling

Inheritors

Constructors

Link copied to clipboard
constructor(mapper: ObjectMapper, defaultContentType: ContentType = TEXT_YAML)

Properties

Link copied to clipboard
open override val defaultContentType: ContentType
Link copied to clipboard
val mapper: ObjectMapper

Functions

Link copied to clipboard
inline fun <T : Any> asA(input: InputStream): T
inline fun <T : Any> asA(input: String): T
fun <T : Any> String.asA(target: KClass<T>): T
open override fun <T : Any> asA(input: InputStream, target: KClass<T>): T
open override fun <T : Any> asA(input: String, target: KClass<T>): T
Link copied to clipboard
open override fun asFormatString(input: Any): String
Link copied to clipboard
open override fun asInputStream(input: Any): InputStream
Link copied to clipboard
inline fun <T : Any> Body.Companion.auto(description: String? = null, contentNegotiation: ContentNegotiation = None): BiDiBodyLensSpec<T>
Link copied to clipboard
inline fun <T : Any> autoBody(description: String? = null, contentNegotiation: ContentNegotiation = None): BiDiBodyLensSpec<T>
Link copied to clipboard
inline fun <IN : Any, OUT : Any> autoLens(lens: BiDiLensSpec<IN, String>): BiDiLensSpec<IN, OUT>
Link copied to clipboard
inline fun <IN : Any, OUT : Any> convert(input: IN): OUT
Link copied to clipboard
inline operator fun <T : Any, R : HttpMessage> ConfigurableJacksonYaml.invoke(item: T): (R) -> R
inline operator fun <T : Any> ConfigurableJacksonYaml.invoke(msg: HttpMessage): T
Link copied to clipboard
inline fun <T : Any> HttpMessage.yaml(): T

Convenience function to read an object as YAML from the message body.

inline fun <T : Any, R : HttpMessage> R.yaml(t: T): R

Convenience function to write the object as YAML to the message body and set the content type.