Class DynamicSessionIDExtensions

  • All Implemented Interfaces:
    SessionIDExtensions

    public class DynamicSessionIDExtensions
    extends Object
    implements SessionIDExtensions
    Responsible for dynamically updating the SessionID extensions (S1/SI) based on current server configuration. When the server/site configuration changes, this layer will be able to update the requested SessionID extension dynamically using the SessionIDCorrector. Importantly, the logic of how the S1/SI values are arranged is maintained as per SessionID.validate().
    • Constructor Detail

      • DynamicSessionIDExtensions

        public DynamicSessionIDExtensions​(SessionIDExtensions delegate)
        Create a default instance.
        Parameters:
        delegate - The delegate to defer.
    • Method Detail

      • getPrimaryID

        public String getPrimaryID()
        Description copied from interface: SessionIDExtensions
        The Primary ID for the SessionID is that Sessions home server.
        Specified by:
        getPrimaryID in interface SessionIDExtensions
        Returns:
        Possibly null PrimaryID based on current Server/Site configuration.
      • getSiteID

        public String getSiteID()
        Description copied from interface: SessionIDExtensions
        Servers can be clustered together into Sites which are grouped for Session Failover and crosstalk purposes.
        Specified by:
        getSiteID in interface SessionIDExtensions
        Returns:
        Possibly null SiteID based on current Server/Site configuration.
      • get

        public String get​(String key)
        Defers to the delegated instance for get.
        Specified by:
        get in interface SessionIDExtensions
        Parameters:
        key - Non null
        Returns:
        Possibly null
      • add

        public void add​(String key,
                        String value)
        Defers to the delegated instance for get.
        Specified by:
        add in interface SessionIDExtensions
        Parameters:
        key - Non null key.
        value - Non null value.
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        A string representation of the underlying SessionIDCorrector responsible for the mappings.