Interface ImmutableSessionAttributes

All Known Subinterfaces:
SessionAttributes
All Known Implementing Classes:
OOBSession

public interface ImmutableSessionAttributes
Provides read-only access to a session's attributes.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the value of the specified attribute.
    Returns the names of the attributes of this session.
    default <T> Map<String,T>
    getAttributes(Class<T> targetClass)
    Convenience method returning a map of attributes whose values are instances of the specified class.
  • Method Details

    • getAttributeNames

      Set<String> getAttributeNames()
      Returns the names of the attributes of this session.
      Returns:
      a set of unique attribute names
    • getAttribute

      Object getAttribute(String name)
      Retrieves the value of the specified attribute.
      Parameters:
      name - a unique attribute name
      Returns:
      the attribute value, or null if the attribute does not exist.
    • getAttributes

      default <T> Map<String,T> getAttributes(Class<T> targetClass)
      Convenience method returning a map of attributes whose values are instances of the specified class.
      Parameters:
      targetClass - a target class
      Returns:
      an unmodifiable map of attributes implementing the specified class