com.cafesoft.cams.session
Class StandardRemoteSession

java.lang.Object
  |
  +--com.cafesoft.cams.session.AbstractBaseSession
        |
        +--com.cafesoft.cams.session.StandardRemoteSession
All Implemented Interfaces:
Recyclable, RemoteSession, Serializable, Session

public final class StandardRemoteSession
extends AbstractBaseSession
implements RemoteSession

Standard implementation of the RemoteSession interface.

Since:
5/15/02
See Also:
Session, RemoteSession, AbstractBaseSession, Serialized Form

Field Summary
 
Fields inherited from class com.cafesoft.cams.session.AbstractBaseSession
namespaceMap, sessionStatus, touchTime
 
Constructor Summary
StandardRemoteSession(SessionId sessionId, String securityDomainName, long creationTime, long lastTouchTime, long idleTime, Map authenticationMap, SessionStatus sessionStatus, NamespaceMap namespaceMap, String subjectName, String[] principalNames)
          Create a new StandardRemoteSession with the given Session id, creation time, last touch time, idle time, Map of AuthenticationMethods, SessionStatus, NamespaceMap, subject name, and array of principal names
 
Method Summary
 long getIdleTime()
          Get the idle time of the RemoteSession
 String[] getPrincipalNames()
          Get the Principal names
 String getSubjectName()
          Get the subject name of the RemoteSession
 void recycle()
          Recycle the resources of this object
 
Methods inherited from class com.cafesoft.cams.session.AbstractBaseSession
getAttribute, getAttributeNames, getAuthenticationMethods, getCreationTime, getId, getLastTouchTime, getNamespaces, getSecurityDomainName, getStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.cafesoft.cams.session.Session
getAttribute, getAttributeNames, getAuthenticationMethods, getCreationTime, getId, getLastTouchTime, getNamespaces, getSecurityDomainName, getStatus
 

Constructor Detail

StandardRemoteSession

public StandardRemoteSession(SessionId sessionId,
                             String securityDomainName,
                             long creationTime,
                             long lastTouchTime,
                             long idleTime,
                             Map authenticationMap,
                             SessionStatus sessionStatus,
                             NamespaceMap namespaceMap,
                             String subjectName,
                             String[] principalNames)
Create a new StandardRemoteSession with the given Session id, creation time, last touch time, idle time, Map of AuthenticationMethods, SessionStatus, NamespaceMap, subject name, and array of principal names

Parameters:
sessionId - the session id
securityDomainName - the securityDomain this remote session belongs to
creationTime - the session creation time
lastTouchTime - the last touch time
idleTime - the idle time allowed before session is invalid
authenticationMap - the Map of AuthenticationMethods
sessionStatus - the Session's status
namespaceMap - the NamespaceMap of the Session
subjectName - the Subject name of the Session
principalNames - an array of Principal names
Method Detail

recycle

public void recycle()
Recycle the resources of this object

Specified by:
recycle in interface Recyclable
Overrides:
recycle in class AbstractBaseSession

getPrincipalNames

public String[] getPrincipalNames()
Get the Principal names

Specified by:
getPrincipalNames in interface RemoteSession
Returns:
a String array of Principal names

getSubjectName

public String getSubjectName()
Get the subject name of the RemoteSession

Specified by:
getSubjectName in interface RemoteSession
Returns:
the subject name

getIdleTime

public long getIdleTime()
Get the idle time of the RemoteSession

Specified by:
getIdleTime in interface RemoteSession
Returns:
the idle time in milliseconds


Generated on 10:40:31 AM September 10, 2003, © 1996-2003 Cafésoft LLC. All rights reserved.