|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpSession
| Method Summary | |
|---|---|
Object |
getAttribute(String name)
Returns the object bound with the specified name in this session, or null if no object is bound under the name. |
String |
getId()
Returns a string containing the unique identifier assigned to this session. |
void |
removeAttribute(String name)
|
void |
setAttribute(String name,
Object value)
Binds an object to this session, using the name specified. |
| Methods inherited from interface javax.servlet.http.HttpSession |
|---|
getAttributeNames, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getServletContext, getSessionContext, getValue, getValueNames, invalidate, isNew, putValue, removeValue, setMaxInactiveInterval |
| Method Detail |
|---|
void removeAttribute(String name)
removeAttribute in interface javax.servlet.http.HttpSessionObject getAttribute(String name)
null if no object is bound under the name.
getAttribute in interface javax.servlet.http.HttpSessionname - a string specifying the name of the object
void setAttribute(String name,
Object value)
setAttribute in interface javax.servlet.http.HttpSessionname - the name to which the object is bound; cannot be nullvalue - the object to be boundString getId()
getId in interface javax.servlet.http.HttpSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||