|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Session
Interface that defines a user session in Tarsis MVC Framework.
Session
object provides a way to identify a user across more than one
request and to store information about that user.Session
is intended
to decouple Tarsis commands layer from Servlet layer.
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the object bound with the specified name in this session, or null if no object is bound under the name. |
java.lang.String |
getId()
Returns a string containing the unique identifier assigned to this session. |
void |
removeAttribute(java.lang.String name)
Removes the object bound with the specified name from this session. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Binds an object to this session, using the name specified. |
Method Detail |
---|
java.lang.String getId()
void setAttribute(java.lang.String name, java.lang.Object value)
name
- String the name to which the object is bound; cannot be
null
.value
- Object the object to be bound.HttpSession.setAttribute(String, Object)
java.lang.Object getAttribute(java.lang.String name)
null
if no object is bound under the name.
name
- String a string specifying the name of the object.
HttpSession.getAttribute(String)
void removeAttribute(java.lang.String name)
name
- String the name of the object to remove from this session.HttpSession.removeAttribute(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |