SessionPort

interface SessionPort

Functions

Link copied to clipboard
abstract fun attributes(): Map<String, Any?>

Returns a Map of attribute object bound to this session.

Link copied to clipboard
abstract fun creationTime(): Long?

Returns the time when this session was created.

Link copied to clipboard
abstract fun getAttribute(name: String): Any?

Returns the attribute object bound to this session by the given name.

Link copied to clipboard
abstract fun id(): String?

A string containing the unique identifier assigned to this session (Cookie).

Link copied to clipboard
abstract fun invalidate()

Invalidates this session then unbinds any objects bound to it.

Link copied to clipboard
abstract fun isNew(): Boolean

Returns true if the client does not yet know about the session or if the client chooses not to join the session.

Link copied to clipboard
abstract fun lastAccessedTime(): Long?

Returns the last time the client sent a request associated with this session.

Link copied to clipboard
abstract fun maxInactiveInterval(): Int?

Returns the maximum time interval in seconds between client accesses after which the session will be invalidated.

abstract fun maxInactiveInterval(value: Int?)

Sets the time, in seconds, between client requests before the session is invalidated.

Link copied to clipboard
abstract fun removeAttribute(name: String)

Removes the bound object from the session attribute with the specified name.

Link copied to clipboard
abstract fun setAttribute(name: String, value: Any)

Sets a attribute object to this session with the given name.

Inheritors

Link copied to clipboard
Link copied to clipboard