SessionSerializerReflection

class SessionSerializerReflection<T : Any> : SessionSerializer<T>

A default reflection-based session serializer. A serialized format is textual and optimized for size as it could be transferred via HTTP headers or cookies.

Constructors

Link copied to clipboard
fun <T : Any> SessionSerializerReflection(type: KClass<T>)

Functions

Link copied to clipboard
open override fun deserialize(text: String): T

Deserializes a complex arbitrary object from a String.

Link copied to clipboard
open override fun serialize(session: T): String

Serializes a complex arbitrary object into a String.

Properties

Link copied to clipboard
val type: KClass<T>

is a session instance class handled by this serializer