public static class AbstractHttpSessionCollection.ApplicationScopeController extends Object implements HttpSessionCollection.AttributeScopeController
| Constructor and Description |
|---|
ApplicationScopeController() |
| Modifier and Type | Method and Description |
|---|---|
String |
extractAttributeName(String sAttribute)
Given a potentially qualified attribute name, return the original
(fully unqualified) attribute name.
|
void |
init(String sApplication)
Initialize the AttributeScopeController.
|
String |
qualifyAttributeName(String sAttribute)
Given an attribute name, return a potentially qualified name.
|
public void init(String sApplication)
init in interface HttpSessionCollection.AttributeScopeControllersApplication - an application name that may be used to
qualify attribute namespublic String qualifyAttributeName(String sAttribute)
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.
qualifyAttributeName in interface HttpSessionCollection.AttributeScopeControllersAttribute - the name that the application identifies the
attribute bypublic String extractAttributeName(String sAttribute)
extractAttributeName in interface HttpSessionCollection.AttributeScopeControllersAttribute - an attribute name that may be qualified