Class AbstractHttpSessionCollection.ApplicationScopeController

    • Constructor Detail

      • ApplicationScopeController

        public ApplicationScopeController()
    • Method Detail

      • qualifyAttributeName

        public String qualifyAttributeName​(String sAttribute)
        Given an attribute name, return a potentially qualified name.

        Attribute names may be qualified in order to avoid collisions when a session is shared across multiple applications. In other words, when sessions are shared across multiple applications, attributes which are not intended to be shared across multiple applications must be qualified so that other applications do not inadvertently overwrite, use, or remove these attributes.

        Specified by:
        qualifyAttributeName in interface HttpSessionCollection.AttributeScopeController
        Parameters:
        sAttribute - the name that the application identifies the attribute by
        Returns:
        either the name as passed in, or a qualified name
      • extractAttributeName

        public String extractAttributeName​(String sAttribute)
        Given a potentially qualified attribute name, return the original (fully unqualified) attribute name. The unqualified attribute name is the name that the application identifies the attribute by. Attributes that are shared across applications remain unqualified, whereas attributes that are private to an application are qualified in order to scope them to that application.
        Specified by:
        extractAttributeName in interface HttpSessionCollection.AttributeScopeController
        Parameters:
        sAttribute - an attribute name that may be qualified
        Returns:
        the unqualified attribute name