Trait

org.scalatra.servlet

AttributesMap

Related Doc: package servlet

Permalink

trait AttributesMap extends AnyRef

Adapts for handling servlet objects (e.g., ServletRequest, HttpSession, ServletContext) as mutable map.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AttributesMap
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type A

    Permalink
    Attributes
    protected[this]

Abstract Value Members

  1. abstract def attributes: A

    Permalink
    Attributes
    protected[this]
  2. implicit abstract def attributesTypeClass: Attributes[A]

    Permalink
    Attributes
    protected[this]

Concrete 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)): AttributesMap.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

  4. def -=(key: String): AttributesMap.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

  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

  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

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

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

    Permalink

    Returns whether the specified key exists

    Returns whether the specified key exists

    returns

    whether the specified key exists

  11. def dumpAll: String

    Permalink

    dumps all keys and values

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

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

    Permalink

    Appllies a function f to add attribute elements

  16. 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.

  17. 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

  18. 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

  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. 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

  21. 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

  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. 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

  25. def keys: Iterator[String]

    Permalink

    Returns an attributes keys

  26. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. 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

  32. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped