|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
APIAwareSession defines a wrapper for a session object that can store & retrieve serializable objects into the session, using the calls appropriate to the selected Servlet API
| Method Summary | |
Serializable |
getAttribute(HttpServletRequest req,
String code)
Get an attribute from the session |
Enumeration |
getAttributeNames(HttpServletRequest req)
Get all the attribute names from the request |
String |
getContextPath(HttpServletRequest req)
Retrieve the context path |
String |
getId(HttpServletRequest req)
Get the session id |
void |
invalidate(HttpServletRequest req)
Invalidate teh session |
void |
removeAttribute(HttpServletRequest req,
String code)
Remove an attribute from the session |
void |
setAttribute(HttpServletRequest req,
String code,
Serializable value)
Set an attribute in the session |
| Method Detail |
public Serializable getAttribute(HttpServletRequest req,
String code)
throws ServletException
req - The HttpServletRequest objectcode - the attribute code
ServletException
public Enumeration getAttributeNames(HttpServletRequest req)
throws ServletException
req - The servlet request object
ServletException - upon error
public void setAttribute(HttpServletRequest req,
String code,
Serializable value)
throws ServletException
req - The servlet requestcode - The attribute "Key"value - the value of the object
ServletException
public void removeAttribute(HttpServletRequest req,
String code)
throws ServletException
req - The servlet request objectcode - the key to remove
ServletException - upon errorpublic void invalidate(HttpServletRequest req)
req - the servlet requestpublic String getContextPath(HttpServletRequest req)
req - the http servlet request
public String getId(HttpServletRequest req)
req - the httpservlet request
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||