SessionSerializerReflection

class SessionSerializerReflection<T : Any> : 
    SessionSerializer

Default reflection-based session serializer that does it via reflection. Serialized format is textual and optimized for size as it is could be transferred via HTTP headers or cookies

Constructors

<init>

SessionSerializerReflection(type: KClass<T>)

Default reflection-based session serializer that does it via reflection. Serialized format is textual and optimized for size as it is could be transferred via HTTP headers or cookies

Properties

type

val type: KClass<T>

is a session instance class handled by this serializer

Functions

deserialize

fun deserialize(text: String): T

Deserializes a complex arbitrary object from a String.

serialize

fun serialize(session: Any): String

Serializes a complex arbitrary object into a String.