|
Weaver 3.1.0a1-D1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.oldlight.weaver.interpreter.WeaverSessionContextImpl
Representation of a browser session.
Field Summary | |
private String |
SECURITY_CONTEXT
|
private HttpSession |
session
The actual servlet session object |
Constructor Summary | |
WeaverSessionContextImpl(HttpSession session)
Create a new WeaverSessionContext |
Method Summary | |
Object |
getAttribute(String name)
Get a named session scoped attribute |
Map |
getAttributeMap()
Get a map off session scoped attribute names to value. |
long |
getCreationTime()
Gets the time that this session was created. |
long |
getLastAccessedTime()
Get the last time that a request was made in this session. |
long |
getMaxInactiveInterval()
Get the maximum time between requests before this session will time out. |
WeaverSecurityContext |
getSecurityContext()
Gets the security context for this session |
String |
getSessionID()
Get the ID of this session. |
void |
invalidate()
Invalidates this session. |
void |
removeAttribute(String name)
Remove a session scoped attribute. |
void |
setAttribute(String name,
Object value)
Set the value of a named session scoped attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String SECURITY_CONTEXT
private HttpSession session
Constructor Detail |
public WeaverSessionContextImpl(HttpSession session)
session
- The HttpSession to wrap.Method Detail |
public WeaverSecurityContext getSecurityContext()
getSecurityContext
in interface WeaverSessionContext
public Object getAttribute(String name)
getAttribute
in interface WeaverSessionContext
name
- The name of the attribute to retrieve.
public void setAttribute(String name, Object value)
setAttribute
in interface WeaverSessionContext
name
- The name of the attribute to set.value
- The value to set the attribute to.public void removeAttribute(String name)
removeAttribute
in interface WeaverSessionContext
name
- The name of the attribute to remove.public Map getAttributeMap()
public long getLastAccessedTime()
getLastAccessedTime
in interface WeaverSessionContext
public String getSessionID()
getSessionID
in interface WeaverSessionContext
public void invalidate()
invalidate
in interface WeaverSessionContext
public long getCreationTime()
getCreationTime
in interface WeaverSessionContext
public long getMaxInactiveInterval()
getMaxInactiveInterval
in interface WeaverSessionContext
|
Copyright ©Paul Harvey | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |