A helper class for a mutable map of callbacks.
Returns an unmodifiable copy of the current map of callbacks.
Even if this instance is modified later, the copy is not affected.
Set or clear session callbacks.
The set of session callbacks is empty by default. Application can store common callbacks in this map. The keys in the given map are HTTP response status codes like 500 or 404, or HTTP status categories: "info", "success", "redirect", "client_error", "server_error", "error". If the key is not recognized as either a status code or category, an {@ IllegalAgumentException} is thrown.
Note that the old callbacks are not removed, unless their corresponding key is set to null
in
{
cbs}.
- cbs
- Session callbacks to set or clear. Note that any previously set callbacks are not cleared unless
they are explicitly set to null
in this argument.