|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.multisite.SiteSessionManager
public class SiteSessionManager
The SiteSessionManager is a session-scoped component that tracks the session associated with each SiteContext. Each SiteContext has an associated SiteSession that is used to store attributes for the given session.
Every time a request is made that corresponds to a SiteContext, the SiteSessionManager's handleSiteRequest() method is called. This method iterates over its configured SiteSessionStartProcessor componets in the event that the request started a new site session. Next the method iterates over its SiteRequestProcessor components.
A scheduler component is used to periodically check to see if any of the SiteSession have expired, based on the siteSesionTimeout property. For each site session that has expired the SiteSesionEndProcessor components are iterated over.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
SiteSessionManager()
Constructs an instanceof SiteSessionManager |
Method Summary | |
---|---|
void |
doStartService()
start service. |
void |
doStopService()
stop service |
void |
endSiteSession(SiteSession pSiteSession)
end an individual site session |
java.util.List<java.lang.String> |
getAllVisitedSiteIds()
get AllVisitedSiteIds |
java.lang.Object |
getAttribute(java.lang.String pName)
get a SiteSessionManager attribute |
java.util.Set<java.lang.String> |
getAttributeNames()
get a list of names for all the attributes currently stored in this SiteSessionManager |
SiteContextManager |
getSiteContextManager()
get SiteContextManager |
java.lang.String |
getSiteGroupSnapshotCacheId()
get SiteGroupSnapshotCacheId |
SiteRequestProcessor[] |
getSiteRequestProcessors()
get SiteRequestProcessors |
SiteSession |
getSiteSession(SiteContext pSiteContext)
get a specific site session |
SiteSession |
getSiteSession(java.lang.String pSiteContextId)
get a specific site session |
SiteSessionEndProcessor[] |
getSiteSessionEndProcessors()
get SiteSessionEndProcessors |
java.util.Map<java.lang.String,SiteSession> |
getSiteSessions()
get the session map. |
SiteSessionStartProcessor[] |
getSiteSessionStartProcessors()
get SiteSessionStartProcessors |
java.lang.String |
getSiteSnapshotCacheId()
get SiteSnapshotCacheId |
java.lang.String |
getStickySiteId()
get StickySiteId |
java.lang.String |
getURLManagementSnapshotCacheId()
get URLManagementSnapshotCacheId |
SiteContext |
handleSiteRequest(SiteContext pSite,
DynamoHttpServletRequest pRequest)
check to see if we already have an entry in the hashmap for the specified SiteContext. |
SiteContext |
handleSiteRequest(java.lang.String pSiteId,
DynamoHttpServletRequest pRequest)
check to see if we already have an entry in the hashmap for the specified SiteContext. |
void |
processSiteSessionsEnd()
perform scheduled task. |
void |
setAllVisitedSiteIds(java.util.List<java.lang.String> pAllVisitedSiteIds)
set AllVisitedSiteIds |
void |
setAttribute(java.lang.String pName,
java.lang.Object pValue)
set a SiteSessionManager attribute |
void |
setSiteContextManager(SiteContextManager pSiteContextManager)
set SiteContextManager |
void |
setSiteGroupSnapshotCacheId(java.lang.String pSiteGroupSnapshotCacheId)
set SiteGroupSnapshotCacheId |
void |
setSiteRequestProcessors(SiteRequestProcessor[] pSiteRequestProcessors)
set SiteRequestProcessors |
void |
setSiteSessionEndProcessors(SiteSessionEndProcessor[] pSiteSessionEndProcessors)
set SiteSessionEndProcessors |
void |
setSiteSessionStartProcessors(SiteSessionStartProcessor[] pSiteSessionStartProcessors)
set SiteSessionStartProcessors |
void |
setSiteSnapshotCacheId(java.lang.String pSiteSnapshotCacheId)
set SiteSnapshotCacheId |
void |
setStickySiteId(java.lang.String pStickySiteId)
set StickySiteId |
void |
setURLManagementSnapshotCacheId(java.lang.String pURLManagementSnapshotCacheId)
set URLManagementSnapshotCacheId |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public SiteSessionManager()
Method Detail |
---|
public void setSiteSessionStartProcessors(SiteSessionStartProcessor[] pSiteSessionStartProcessors)
pSiteSessionStartProcessors
- the SiteSessionStartProcessorspublic SiteSessionStartProcessor[] getSiteSessionStartProcessors()
public void setSiteSessionEndProcessors(SiteSessionEndProcessor[] pSiteSessionEndProcessors)
pSiteSessionEndProcessors
- the SiteSessionEndProcessorspublic SiteSessionEndProcessor[] getSiteSessionEndProcessors()
public void setSiteRequestProcessors(SiteRequestProcessor[] pSiteRequestProcessors)
pSiteRequestProcessors
- the SiteRequestProcessorspublic SiteRequestProcessor[] getSiteRequestProcessors()
public void setSiteContextManager(SiteContextManager pSiteContextManager)
pSiteContextManager
- the SiteContextManagerpublic SiteContextManager getSiteContextManager()
public void setSiteSnapshotCacheId(java.lang.String pSiteSnapshotCacheId)
pSiteSnapshotCacheId
- the SiteSnapshotCacheIdpublic java.lang.String getSiteSnapshotCacheId()
public void setSiteGroupSnapshotCacheId(java.lang.String pSiteGroupSnapshotCacheId)
pSiteGroupSnapshotCacheId
- the SiteGroupSnapshotCacheIdpublic java.lang.String getSiteGroupSnapshotCacheId()
public void setURLManagementSnapshotCacheId(java.lang.String pURLManagementSnapshotCacheId)
pURLManagementSnapshotCacheId
- the URLManagementSnapshotCacheIdpublic java.lang.String getURLManagementSnapshotCacheId()
public void setStickySiteId(java.lang.String pStickySiteId)
pStickySiteId
- the StickySiteIdpublic java.lang.String getStickySiteId()
public void setAllVisitedSiteIds(java.util.List<java.lang.String> pAllVisitedSiteIds)
pAllVisitedSiteIds
- the AllVisitedSiteIdspublic java.util.List<java.lang.String> getAllVisitedSiteIds()
public void doStartService() throws ServiceException
doStartService
in class GenericService
ServiceException
- if the Service had a problem starting uppublic void doStopService() throws ServiceException
doStopService
in class GenericService
ServiceException
- if the Service had a problem shutting downpublic SiteContext handleSiteRequest(SiteContext pSite, DynamoHttpServletRequest pRequest)
pSiteId
- the id of the site for this requestpRequest
- the request objectpublic SiteContext handleSiteRequest(java.lang.String pSiteId, DynamoHttpServletRequest pRequest)
pSiteId
- the id of the site for this requestpRequest
- the request objectpublic void processSiteSessionsEnd()
public void endSiteSession(SiteSession pSiteSession)
pSiteSession
- the SiteSession to endpublic java.util.Map<java.lang.String,SiteSession> getSiteSessions()
public SiteSession getSiteSession(SiteContext pSiteContext)
pSiteContext
- the site context for the session to get
public SiteSession getSiteSession(java.lang.String pSiteContextId)
pSiteContextId
- the Id for the site context
public java.util.Set<java.lang.String> getAttributeNames()
public java.lang.Object getAttribute(java.lang.String pName)
pName
- the attribute name
public void setAttribute(java.lang.String pName, java.lang.Object pValue)
pName
- the attribute namepValue
- the attribute value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |