Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SessionId

A session ID A session ID

Hierarchy

  • SessionId

Index

Constructors

Properties

Methods

Constructors

constructor

  • new SessionId(server: Long, value: Long): SessionId
  • Create a new session ID

    Parameters

    • server: Long

      server part of the ID

    • value: Long

      value part of the ID

    Returns SessionId

Properties

server

server: Long

Server part of the ID

value

value: Long

Value part of the ID

Methods

toString

  • toString(): string
  • Convert the session ID to a string

    Returns string

    a string representation of the session ID

Static fromString

  • fromString(str: string): SessionId
  • Create a new session ID from a string

    Parameters

    • str: string

      the string representation of a session ID

    Returns SessionId

    a new session ID

Static validate

  • validate(str: string | SessionId): false | SessionId
  • Determines if a given string is a valid SessionID. If true, the returned value will be the parsed SessionID

    Parameters

    • str: string | SessionId

      the session id string

    Returns false | SessionId

    false if the string cannot be parsed, or a constructed SessionID