|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.multisite.SiteSession
public class SiteSession
This class maintains state about the current site session
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
| Constructor Summary | |
|---|---|
SiteSession(Site pSite,
SiteSessionManager pSiteSessionManager)
Constructs an instanceof SiteSession |
|
| Method Summary | |
|---|---|
void |
end()
end a site session manually. |
java.lang.Object |
getAttribute(java.lang.String pName)
get an attribute on the session |
java.util.Set<java.lang.String> |
getAttributeNames()
get a list of names for all the attributes currently stored in this SiteSession |
java.lang.String |
getHttpSessionId()
get HttpSessionId |
long |
getLastAccessTime()
get LastAccessTime, this records the last time a request was made for this site session. |
Site |
getReferringSite()
get ReferringSite - the site visited before this site session started |
Site |
getSite()
get Site - the site associated with this SiteSession |
SiteSessionManager |
getSiteSessionManager()
get the SiteSessionManager component that is associated with this SiteSession |
long |
getStartTime()
get StartTime, this records when the site session started |
void |
setAttribute(java.lang.String pName,
java.lang.Object pValue)
set an attribute on the session |
void |
setHttpSessionId(java.lang.String pHttpSessionId)
set HttpSessionId |
void |
setLastAccessTime(long pLastAccessTime)
set LastAccessTime, this records the last time a request was made for this site session. |
void |
setReferringSite(Site pReferringSite)
set ReferringSite - the site visited before this site session started |
void |
setStartTime(long pStartTime)
set StartTime, this records when the site session started |
java.lang.String |
toString()
override toString, print the referring site |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String CLASS_VERSION
| Constructor Detail |
|---|
public SiteSession(Site pSite,
SiteSessionManager pSiteSessionManager)
pSite - the site associated with this SiteSessionpSiteSessionManager - the SiteSessionManager
associated with this SiteSession| Method Detail |
|---|
public Site getSite()
public void setStartTime(long pStartTime)
pStartTime - the StartTimepublic long getStartTime()
public void setLastAccessTime(long pLastAccessTime)
pLastAccessTime - the LastAccessTimepublic long getLastAccessTime()
public void setReferringSite(Site pReferringSite)
pReferringSite - the ReferringSitepublic Site getReferringSite()
public SiteSessionManager getSiteSessionManager()
public void setHttpSessionId(java.lang.String pHttpSessionId)
pHttpSessionId - the HttpSessionIdpublic java.lang.String getHttpSessionId()
public java.util.Set<java.lang.String> getAttributeNames()
public void setAttribute(java.lang.String pName,
java.lang.Object pValue)
pName - the attribute namepValue - the attribute valuepublic java.lang.Object getAttribute(java.lang.String pName)
pName - the attribute name
public void end()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||