org.appng.core.controller

## Class Session

- java.lang.Object
- - org.appng.core.controller.Session

- All Implemented Interfaces:
    Serializable, Cloneable

      public class Session
      extends Object
      implements Cloneable, Serializable

  A simple value object representing a users's http-session.
  Author:
    Matthias Müller
  See Also:
    `SessionListener`, Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Session(String id)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addRequest()`
    `Session` | `clone()`
    `Date` | `getExpiryDate()`
    `String` | `getShortId()`
    `void` | `setAllowExpire(boolean allowExpire)`
    `String` | `toString()`
    `void` | `update(long creationtime, long lastAccessedTime, int maxInactiveInterval)`

    - ### Methods inherited from class java.lang.Object

      `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Session

          public Session(String id)

  - ### Method Detail

    - #### update

          public void update(long creationtime,
                             long lastAccessedTime,
                             int maxInactiveInterval)

    - #### addRequest

          public void addRequest()

    - #### getExpiryDate

          public Date getExpiryDate()

    - #### setAllowExpire

          public void setAllowExpire(boolean allowExpire)

    - #### getShortId

          public String getShortId()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### clone

          public Session clone()

      Overrides:
        `clone` in class `Object`

Copyright © 2011–2023 aiticon GmbH. All rights reserved.