Package com.iplanet.dpro.session
Class DynamicSessionIDExtensions
- java.lang.Object
-
- com.iplanet.dpro.session.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 perSessionID.validate().
-
-
Constructor Summary
Constructors Constructor Description DynamicSessionIDExtensions(SessionIDExtensions delegate)Create a default instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String key, String value)Defers to the delegated instance for get.Map<String,String>asMap()Stringget(String key)Defers to the delegated instance for get.StringgetPrimaryID()The Primary ID for the SessionID is that Sessions home server.StringgetSiteID()Servers can be clustered together into Sites which are grouped for Session Failover and crosstalk purposes.StringgetStorageKey()StringtoString()
-
-
-
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:SessionIDExtensionsThe Primary ID for the SessionID is that Sessions home server.- Specified by:
getPrimaryIDin interfaceSessionIDExtensions- Returns:
- Possibly null PrimaryID based on current Server/Site configuration.
-
getSiteID
public String getSiteID()
Description copied from interface:SessionIDExtensionsServers can be clustered together into Sites which are grouped for Session Failover and crosstalk purposes.- Specified by:
getSiteIDin interfaceSessionIDExtensions- Returns:
- Possibly null SiteID based on current Server/Site configuration.
-
getStorageKey
public String getStorageKey()
- Specified by:
getStorageKeyin interfaceSessionIDExtensions- Returns:
- Defers to the delegated instance for getStorageKey call.
-
get
public String get(String key)
Defers to the delegated instance for get.- Specified by:
getin interfaceSessionIDExtensions- Parameters:
key- Non null- Returns:
- Possibly null
-
add
public void add(String key, String value)
Defers to the delegated instance for get.- Specified by:
addin interfaceSessionIDExtensions- Parameters:
key- Non null key.value- Non null value.
-
asMap
public Map<String,String> asMap()
- Specified by:
asMapin interfaceSessionIDExtensions- Returns:
- Defers to the delegated instance for asMap call.
-
-