Class

org.scalatra.servlet

RichSession

Related Doc: package servlet

Permalink

case class RichSession(session: HttpSession) extends AttributesMap with Product with Serializable

Extension methods to the standard HttpSession.

Linear Supertypes
Serializable, Serializable, Product, Equals, AttributesMap, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichSession
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AttributesMap
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichSession(session: HttpSession)

    Permalink

Type Members

  1. type A = HttpSession

    Permalink
    Attributes
    protected[this]
    Definition Classes
    RichSessionAttributesMap

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +=(kv: (String, Any)): RichSession.this.type

    Permalink

    Sets an attribute on the underlying servlet object.

    Sets an attribute on the underlying servlet object.

    kv

    the key/value pair. If the value is null, has the same effect as calling -=(kv._1).

    returns

    the map itself

    Definition Classes
    AttributesMap
  4. def -=(key: String): RichSession.this.type

    Permalink

    Removes an attribute from the underlying servlet object.

    Removes an attribute from the underlying servlet object.

    key

    the key to remove

    returns

    the map itself

    Definition Classes
    AttributesMap
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def apply(key: String): Any

    Permalink

    Returns the attribute associated with the key or throw an exception when nothing found

    Returns the attribute associated with the key or throw an exception when nothing found

    key

    The key to find

    returns

    an value for the attributed associated with the key in the underlying servlet object, or throw an exception if the key doesn't exist

    Definition Classes
    AttributesMap
  7. def as[T](key: String)(implicit converter: TypeConverter[Any, T]): T

    Permalink

    Returns the attribute associated with the key or throw an exception when nothing found

    Returns the attribute associated with the key or throw an exception when nothing found

    T

    The type of the value

    key

    The key to find

    returns

    an value for the attributed associated with the key in the underlying servlet object, or throw an exception if the key doesn't exist

    Definition Classes
    AttributesMap
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def attributes: HttpSession

    Permalink
    Attributes
    protected[this]
    Definition Classes
    RichSessionAttributesMap
  10. def attributesTypeClass: Attributes[A]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    RichSessionAttributesMap
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def contains(key: String): Boolean

    Permalink

    Returns whether the specified key exists

    Returns whether the specified key exists

    returns

    whether the specified key exists

    Definition Classes
    AttributesMap
  13. def dumpAll: String

    Permalink

    dumps all keys and values

    dumps all keys and values

    Definition Classes
    AttributesMap
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def foreach[U](f: ((String, Any)) ⇒ U): Unit

    Permalink

    Appllies a function f to add attribute elements

    Appllies a function f to add attribute elements

    Definition Classes
    AttributesMap
  17. def get(key: String): Option[Any]

    Permalink

    Optionally returns the attribute associated with the key

    Optionally returns the attribute associated with the key

    key

    The key to find

    returns

    an option value containing the attribute associated with the key in the underlying servlet object, or None if none exists.

    Definition Classes
    AttributesMap
  18. def getAs[T](key: String)(implicit converter: TypeConverter[Any, T]): Option[T]

    Permalink

    Optionally returns and type cast the attribute associated with the key

    Optionally returns and type cast the attribute associated with the key

    T

    The type of the value

    key

    The key to find

    returns

    an option value containing the attributed associated with the key in the underlying servlet object, or None if none exists

    Definition Classes
    AttributesMap
  19. def getAsOrElse[T](key: String, default: ⇒ T)(implicit converter: TypeConverter[Any, T]): T

    Permalink

    Returns the attribute associated with the key or default value

    Returns the attribute associated with the key or default value

    T

    The type of the value

    key

    The key to find

    returns

    an value for the attributed associated with the key in the underlying servlet object, or the default value if the key doesn't exist

    Definition Classes
    AttributesMap
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def getOrElse(key: String, default: ⇒ Any): Any

    Permalink

    Returns the attribute associated with the key or default value

    Returns the attribute associated with the key or default value

    key

    The key to find

    returns

    an value for the attributed associated with the key in the underlying servlet object, or the default value if the key doesn't exist

    Definition Classes
    AttributesMap
  22. def getOrElseUpdate(key: String, value: ⇒ Any): Any

    Permalink

    Returns the attribute associated with the key or update attributes with the specified value

    Returns the attribute associated with the key or update attributes with the specified value

    key

    The key to find

    value

    The value that will be updated the attribute associated with the key when the key does not exist

    returns

    an value for the attributed associated with the key in the underlying servlet object, or the updated value if the key doesn't exist

    Definition Classes
    AttributesMap
  23. def id: String

    Permalink
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def iterator: Iterator[(String, Any)]

    Permalink

    Creates a new iterator over all attributes in the underlying servlet object.

    Creates a new iterator over all attributes in the underlying servlet object.

    returns

    the new iterator

    Definition Classes
    AttributesMap
  26. def keys: Iterator[String]

    Permalink

    Returns an attributes keys

    Returns an attributes keys

    Definition Classes
    AttributesMap
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. val session: HttpSession

    Permalink
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def update(key: String, value: Any): Unit

    Permalink

    Updates the attribute associated with the key

    Updates the attribute associated with the key

    key

    The key to update

    Definition Classes
    AttributesMap
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AttributesMap

Inherited from AnyRef

Inherited from Any

Ungrouped