|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.danube.tapestry.DanubeSession
public class DanubeSession
WebSession
interface implementation
Field Summary | |
---|---|
protected boolean |
isNew
Flag to denote if the session is new |
protected Session |
session
Danube's session |
static String |
SESSION_ATTRIBUTE
Attribute in session this object is going to be stored |
Constructor Summary | |
---|---|
DanubeSession(Session session)
Constructor |
Method Summary | |
---|---|
protected void |
clearNew()
Clears isNew flag. |
void |
describeTo(DescriptionReceiver descriptionReceiver)
Does nothing |
Object |
getAttribute(String key)
Returns attribute |
List |
getAttributeNames()
Returns attributes names as a list |
String |
getId()
Returns session id |
void |
invalidate()
Invalidates session. |
boolean |
isNew()
Returns true if session is newly created |
void |
setAttribute(String key,
Object value)
Sets attribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SESSION_ATTRIBUTE
protected Session session
protected boolean isNew
Constructor Detail |
---|
public DanubeSession(Session session)
session
- danube's sessionMethod Detail |
---|
public String getId()
getId
in interface WebSession
public boolean isNew()
true
if session is newly created
isNew
in interface WebSession
true
if session is newly createdprotected void clearNew()
isNew
flag.
public void invalidate()
invalidate
in interface WebSession
public List getAttributeNames()
getAttributeNames
in interface AttributeHolder
public Object getAttribute(String key)
getAttribute
in interface AttributeHolder
key
- attribute name
public void setAttribute(String key, Object value)
setAttribute
in interface AttributeHolder
key
- attribute's namevalue
- attribute's valuepublic void describeTo(DescriptionReceiver descriptionReceiver)
describeTo
in interface Describable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |