trait AttributesMap extends AnyRef
Adapts for handling servlet objects (e.g., ServletRequest, HttpSession, ServletContext) as mutable map.
- Alphabetic
- By Inheritance
- AttributesMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
type
A
- Attributes
- protected[this]
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+=(kv: (String, Any)): AttributesMap.this.type
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
-
def
-=(key: String): AttributesMap.this.type
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
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(key: String): Any
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
-
def
as[T](key: String)(implicit converter: TypeConverter[Any, T]): T
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
contains(key: String): Boolean
Returns whether the specified key exists
Returns whether the specified key exists
- returns
whether the specified key exists
-
def
dumpAll: String
dumps all keys and values
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
foreach[U](f: ((String, Any)) ⇒ U): Unit
Appllies a function f to add attribute elements
-
def
get(key: String): Option[Any]
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.
-
def
getAs[T](key: String)(implicit converter: TypeConverter[Any, T]): Option[T]
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
-
def
getAsOrElse[T](key: String, default: ⇒ T)(implicit converter: TypeConverter[Any, T]): T
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getOrElse(key: String, default: ⇒ Any): Any
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
-
def
getOrElseUpdate(key: String, value: ⇒ Any): Any
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
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iterator: Iterator[(String, Any)]
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
-
def
keys: Iterator[String]
Returns an attributes keys
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
update(key: String, value: Any): Unit
Updates the attribute associated with the key
Updates the attribute associated with the key
- key
The key to update
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()