|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.pool.RecyclableSupport
org.norther.tammi.core.pool.PoolableSupport
org.norther.tammi.spray.session.DefaultSession
public class DefaultSession
A default implementation of AuthenticatdSession.
| Constructor Summary | |
|---|---|
DefaultSession(MBeanReference mgr,
String id)
Constructs a new session. |
|
| Method Summary | |
|---|---|
void |
access()
Updates the accessed time information for this session. |
void |
activate()
Activates session attributes. |
void |
activated(CachedEntryEvent event)
Notifies the object that it has been activated to the cache. |
void |
dispose()
Disposes the object by setting its disposed flag. |
void |
disposed()
A call back indicating that this instance is not needed any more and can be disposed. |
void |
expired(CachedEntryEvent event)
Notifies the object that it has been expired from the cache. |
Object |
getAttribute(String name)
|
Enumeration |
getAttributeNames()
|
long |
getCreationTime()
|
String |
getId()
|
long |
getLastAccessedTime()
|
int |
getMaxInactiveInterval()
|
ServletContext |
getServletContext()
|
HttpSessionContext |
getSessionContext()
|
Principal |
getUserPrincipal()
Gets the authenticated principal that is associated with this session. |
Object |
getValue(String name)
|
String[] |
getValueNames()
|
void |
invalidate()
|
boolean |
isNew()
|
boolean |
isValid()
Checks whether the session is valid. |
void |
passivate()
Passivates session attributes. |
void |
passivated(CachedEntryEvent event)
Notifies the object that it has been passivated from the cache. |
void |
postmanaged()
This method is called when the implementing adaptee has been managed either during post-registration of the corresponding adapter MBean or just after it is explicitly added to the adapter MBean during run-time. |
void |
premanaged(MBeanDelegate adapter)
This method is called when the implementing adaptee is trying to be managed either during pre-registration of the corresponding adapter MBean or just before it is explicitly added to the adapter MBean during run-time. |
void |
putValue(String name,
Object value)
|
void |
recycle(MBeanReference mgr,
String id)
Recycles an existing session with an expiration. |
HttpSession |
registerUserPrincipal(Principal principal)
Registers the authenticated principal that is associated with this session or a joined one. |
void |
removeAttribute(String name)
|
void |
removeValue(String name)
|
void |
setAttribute(String name,
Object value)
|
void |
setMaxInactiveInterval(int interval)
|
String |
toString()
Return a string representation of this object. |
void |
unmanaged()
This method is called when the implementing adaptee is unmanaged either during pre-deregistration of the corresponding adapter MBean or just before it is explicitly removed from the adapter MBean during run-time. |
| Methods inherited from class org.norther.tammi.core.pool.PoolableSupport |
|---|
recycled |
| Methods inherited from class org.norther.tammi.core.pool.RecyclableSupport |
|---|
isDisposed, recycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.norther.tammi.core.pool.Recyclable |
|---|
isDisposed, recycle |
| Constructor Detail |
|---|
public DefaultSession(MBeanReference mgr,
String id)
mgr - the manager of this session.id - the id of the session.| Method Detail |
|---|
public void recycle(MBeanReference mgr,
String id)
mgr - the manager of this session.id - the id of the session.public void dispose()
RecyclableSupport
dispose in interface Recyclabledispose in class RecyclableSupportpublic void disposed()
Poolable
disposed in interface Poolabledisposed in class PoolableSupport
public void premanaged(MBeanDelegate adapter)
throws Exception
Manageable
premanaged in interface Manageableadapter - the managing adapter.
Exception - if the adaptee refused to be managed.public void postmanaged()
Manageable
postmanaged in interface Manageable
public void unmanaged()
throws Exception
Manageable
unmanaged in interface ManageableException - if the adaptee refused to be unmanaged.public void expired(CachedEntryEvent event)
CacheListener
expired in interface CacheListenerevent - the cached entry event.public void passivated(CachedEntryEvent event)
CacheListener
passivated in interface CacheListenerevent - the cached entry event.public void activated(CachedEntryEvent event)
CacheListener
activated in interface CacheListenerevent - the cached entry event.public boolean isValid()
AuthenticatedSession
isValid in interface AuthenticatedSessionpublic Object getAttribute(String name)
getAttribute in interface HttpSession
public void setAttribute(String name,
Object value)
setAttribute in interface HttpSessionpublic void removeAttribute(String name)
removeAttribute in interface HttpSessionpublic Enumeration getAttributeNames()
getAttributeNames in interface HttpSessionpublic String getId()
getId in interface HttpSessionpublic long getCreationTime()
getCreationTime in interface HttpSessionpublic long getLastAccessedTime()
getLastAccessedTime in interface HttpSessionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface HttpSessionpublic void setMaxInactiveInterval(int interval)
setMaxInactiveInterval in interface HttpSessionpublic boolean isNew()
isNew in interface HttpSessionpublic void invalidate()
invalidate in interface HttpSessionpublic ServletContext getServletContext()
getServletContext in interface HttpSessionpublic HttpSessionContext getSessionContext()
getSessionContext in interface HttpSessionpublic Object getValue(String name)
getValue in interface HttpSession
public void putValue(String name,
Object value)
putValue in interface HttpSessionpublic void removeValue(String name)
removeValue in interface HttpSessionpublic String[] getValueNames()
getValueNames in interface HttpSessionpublic Principal getUserPrincipal()
AuthenticatedSession
getUserPrincipal in interface AuthenticatedSessionpublic HttpSession registerUserPrincipal(Principal principal)
AuthenticatedSession
registerUserPrincipal in interface AuthenticatedSessionprincipal - the authenticated principal.
public void access()
AuthenticatedSession
access in interface AuthenticatedSessionpublic void activate()
public void passivate()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||