|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.session.SessionSize
This class provides a way to get the size of a session object.
Field Summary | |
private java.util.ArrayList |
failureReasons
Collection of reasons why session size could not be determined. |
private boolean |
ignoreNonSerializable
This flag determines if the session size will continue to be calculated even when a non-serializable objects are found. |
private javax.servlet.http.HttpSession |
session
Reference to session this object is associated with. |
Constructor Summary | |
SessionSize(javax.servlet.http.HttpSession inSession)
constructor. |
Method Summary | |
int |
getSessionSize()
This method is used to get the total size of a current, valid HttpSession object it is passed. |
void |
setIgnoreNonSerializable(boolean inSetting)
Mutator for the ignoreNonSerializable field. |
java.util.List |
whyFailed()
When getSessionSize() returns -1, this method can be called to retrieve the collection of reasons it failed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private javax.servlet.http.HttpSession session
private java.util.ArrayList failureReasons
private boolean ignoreNonSerializable
Constructor Detail |
public SessionSize(javax.servlet.http.HttpSession inSession)
inSession
- object this object will be associated with.Method Detail |
public void setIgnoreNonSerializable(boolean inSetting)
inSetting
- True to calculate session size regardless of whether
non-serializable objects are found in it, false
otherwise (false is the default).public int getSessionSize()
public java.util.List whyFailed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |