AttributesMap
Adapts for handling servlet objects (e.g., ServletRequest, HttpSession, ServletContext) as mutable map.
Value members
Concrete methods
Sets an attribute on the underlying servlet object.
Sets an attribute on the underlying servlet object.
- Value parameters:
- kv
the key/value pair. If the value is null, has the same effect as calling
-=(kv._1)
.
- Returns:
the map itself
Removes an attribute from the underlying servlet object.
Removes an attribute from the underlying servlet object.
- Value parameters:
- key
the key to remove
- Returns:
the map itself
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
- Value parameters:
- 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
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
- Type parameters:
- T
The type of the value
- Value parameters:
- 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
Returns whether the specified key exists
Returns whether the specified key exists
- Returns:
whether the specified key exists
Optionally returns the attribute associated with the key
Optionally returns the attribute associated with the key
- Value parameters:
- 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.
Optionally returns and type cast the attribute associated with the key
Optionally returns and type cast the attribute associated with the key
- Type parameters:
- T
The type of the value
- Value parameters:
- 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
Returns the attribute associated with the key or default value
Returns the attribute associated with the key or default value
- Type parameters:
- T
The type of the value
- Value parameters:
- default
The default value, it will be returned when the key does not exist
- 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
Returns the attribute associated with the key or default value
Returns the attribute associated with the key or default value
- Value parameters:
- default
The default value, it will be returned when the key does not exist
- 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
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
- Value parameters:
- 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
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