Home

hexagon_core / com.hexagonkt.serialization / SerializationManager

SerializationManager

object SerializationManager

TODO

Can be a Serializator immutable class and:

object SerializationManager : Serializator(mimeTypesResource, formats)

Properties

Name Summary
defaultFormat var defaultFormat:SerializationFormat
formats List of formats. NOTE should be defined AFTER mapper definition to avoid runtime issues.var formats:LinkedHashSet<SerializationFormat>

Functions

Name Summary
contentTypeOf fun contentTypeOf(extension:String):String?
fun contentTypeOf(url:URL):String?
fun contentTypeOf(file:File):String?
fun contentTypeOf(resource:Resource):String?
defaultFormat fun defaultFormat(defaultFormat:SerializationFormat):Unit
formatOf fun formatOf(contentType:String):SerializationFormat
fun formatOf(contentType:String, defaultFormat:SerializationFormat):SerializationFormat
fun formatOf(url:URL):SerializationFormat
fun formatOf(file:File):SerializationFormat
fun formatOf(resource:Resource):SerializationFormat
formats fun formats(vararg formats:SerializationFormat):Unit