Class RegistryEE.Session

Enclosing class:

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


      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.

      The registry or null when session == null.