|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.web.ServletWebSession
public class ServletWebSession
Adapts HttpSession
as
WebSession
.
Constructor Summary | |
---|---|
ServletWebSession(javax.servlet.http.HttpSession session)
|
Method Summary | |
---|---|
void |
describeTo(DescriptionReceiver receiver)
Invoked to have the receiver describe itself (largely in terms of properties and values). |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the named object, or null if no attribute has been stored with the given name. |
java.util.List |
getAttributeNames()
Returns a list of all known attributes in ascending alphabetical order. |
java.lang.String |
getId()
Returns a unique string identifier used to identify the session. |
void |
invalidate()
Invalidates this session then unbinds any objects bound to it. |
boolean |
isNew()
Returns true if the client does not yet know about the session or if the client chooses not to join the session. |
void |
setAttribute(java.lang.String name,
java.lang.Object attribute)
Updates the attribute, replacing (or removing) its value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletWebSession(javax.servlet.http.HttpSession session)
Method Detail |
---|
public void describeTo(DescriptionReceiver receiver)
Describable
toString()
.
describeTo
in interface Describable
public java.util.List getAttributeNames()
AttributeHolder
getAttributeNames
in interface AttributeHolder
public java.lang.Object getAttribute(java.lang.String name)
AttributeHolder
getAttribute
in interface AttributeHolder
public void setAttribute(java.lang.String name, java.lang.Object attribute)
AttributeHolder
WebSession
attribute in a clustered application).
setAttribute
in interface AttributeHolder
name
- the name of the attribute to updateattribute
- the new value for the attribute, or null to delete the attribute entirely.public java.lang.String getId()
WebSession
getId
in interface WebSession
WebResponse.encodeURL(String).
public boolean isNew()
WebSession
isNew
in interface WebSession
public void invalidate()
WebSession
invalidate
in interface WebSession
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |