Package: io.vertx.groovy.ext.shell.session

## [Groovy] Class Session

- io.vertx.groovy.ext.shell.session.Session

- A shell session.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `Session (java.lang.Object delegate)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `static Session` | `create()` Create a new empty session.
    `T` | `get(java.lang.String key)` Get some data from the session
    `java.lang.Object` | `getDelegate()`
    `Session` | `put(java.lang.String key, java.lang.Object obj)` Put some data in a session
    `T` | `remove(java.lang.String key)` Remove some data from the session

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Constructor Detail

    - #### Session(java.lang.Object delegate)

  - ### Method Detail

    - #### static Session create()

      Create a new empty session.

      Returns:
        the created session

    - #### T get(java.lang.String key)

      Get some data from the session

      Returns:
        the data
      Parameters:
        `key` - the key of the data

    - #### java.lang.Object getDelegate()

    - #### Session put(java.lang.String key, java.lang.Object obj)

      Put some data in a session

      Returns:
        a reference to this, so the API can be used fluently
      Parameters:
        `key` - the key for the data
        `obj` - the data

    - #### T remove(java.lang.String key)

      Remove some data from the session

      Returns:
        the data that was there or null if none there
      Parameters:
        `key` - the key of the data