SessionSerializerReflection

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

Deprecated: Don’t refer to the implementation class directly. Use interface type if possible or use defaultSessionSerializer function to create.

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>)

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: T): String

Serializes a complex arbitrary object into a String.