Class RegistryEE.Session

java.lang.Object
com.aoapps.web.resources.servlet.RegistryEE.Session
Enclosing class:
RegistryEE

public static final class RegistryEE.Session extends Object
The session-scope web resource registries are only available when a session has been created and is active.
  • Field Details

    • SESSION_ATTRIBUTE

      public static final ScopeEE.Session.Attribute<Registry> SESSION_ATTRIBUTE
      The name of the session-scope attribute that contains the current session registry.
  • Method Details

    • get

      public static Registry get(HttpSession session)
      Gets the session-scope web resource registry for the given session.

      Note: With the current implementation, the session registry may add to the request registry, but cannot remove from it or suppress anything in it.

      TODO: Is the session registry meaningful? The idea is that it could be used for per-person theme selection via sessions.

      Returns:
      The registry or null when session == null.