|
Test webapp | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectadriani.webapp.beans.GeneralBean
adriani.webapp.beans.SessionBean
public class SessionBean
Bean managing the HTTP session for each user. This bean is created before the user login, hence it exists
for each user, even if he's not logged in the webapp.
This bean takes care of whatever concerns the session, hence the user's data must be managed by another
bean (for example a UsersBean
class).
Constructor Summary | |
---|---|
SessionBean()
Mandatory EMPTY constructor, required by the JavaBeans implementation rules. |
Method Summary | |
---|---|
void |
countPages(int pages)
Count the pages visited by the user in this session. |
HttpServletRequest |
getHttpRequest()
JavaBean property |
HttpServletResponse |
getHttpResponse()
JavaBean property |
HttpSession |
getHttpSession()
JavaBean property |
java.lang.String |
getName()
Return the value bound to the name property. |
int |
getPages()
Return the number of pages visited by the user in this session. |
java.lang.String |
getSessionIP()
Returns the IP address at the moment of login. |
boolean |
isRegistered()
Tells if this user has already logged-in. |
void |
logSessionIP()
Store a reference to the current session IP into this bean. |
void |
setHttpRequest(HttpServletRequest httpRequest)
JavaBean property |
void |
setHttpResponse(HttpServletResponse httpResponse)
JavaBean property |
void |
setHttpSession(HttpSession httpSession)
JavaBean property |
void |
setName(java.lang.String value)
Set a general string value bound to the name property. |
void |
setPages(int value)
Set the number of pages visited by the user in this session. |
void |
setRegistered(boolean value)
Specifies if this user has already logged-in. |
void |
setSessionIP(java.lang.String address)
Set the IP address at the moment of login. |
Methods inherited from class adriani.webapp.beans.GeneralBean |
---|
finalize, isSet, toByte |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionBean()
Method Detail |
---|
public void logSessionIP()
public void setName(java.lang.String value)
name
property.
public java.lang.String getName()
name
property.
public void setRegistered(boolean value)
public boolean isRegistered()
public void setSessionIP(java.lang.String address)
public java.lang.String getSessionIP()
public void setPages(int value)
public int getPages()
public void setHttpSession(HttpSession httpSession)
public HttpSession getHttpSession()
public void setHttpRequest(HttpServletRequest httpRequest)
public HttpServletRequest getHttpRequest()
public void setHttpResponse(HttpServletResponse httpResponse)
public HttpServletResponse getHttpResponse()
public void countPages(int pages)
|
Build 10/01/2013 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |