Interface Session


public interface Session
This interface represents the session of the current user access.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the value of the attribute with the specified name.
    Remove the attribute with the specified name, and return the value of the removed attribute.
    void
    setAttribute(String name, Object value)
    Set the value of the attribute with the specified name.
  • Method Details

    • getAttribute

      Object getAttribute(String name)
      Get the value of the attribute with the specified name.
      Parameters:
      name - The attribute name.
      Returns:
      The attribute value.
    • setAttribute

      void setAttribute(String name, Object value)
      Set the value of the attribute with the specified name.
      Parameters:
      name - The attribute name.
      value - The attribute value.
    • removeAttribute

      Object removeAttribute(String name)
      Remove the attribute with the specified name, and return the value of the removed attribute.
      Parameters:
      name - The attribute name.
      Returns:
      The value of the removed attribute.