Interface SessionAttributeProvider

All Known Implementing Classes:
DefaultSessionAttributeProvider, WebSessionAttributeProvider

public interface SessionAttributeProvider
A session provider allow to retrieve a value stored in session. This interface allow for implementation able to handle case where the session doesn't exists
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The avalon role
  • Method Summary

    Modifier and Type
    Method
    Description
    getSessionAttribute(String attributeName)
    Retrieve a stored session attribute from the current request.
  • Field Details

  • Method Details

    • getSessionAttribute

      Retrieve a stored session attribute from the current request. The stored attribute must be a String or the behavior is undefined and may throw an exception
      Parameters:
      attributeName - the name of the attribute
      Returns:
      the value of the attribute or empty if no value are stored for the given attribute