|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.context.ContextSize
This class provides a way to get the size of a servlet context object. This was suggested by Wendy Smoak.
Field Summary | |
private javax.servlet.ServletContext |
context
Reference to servlet context this object is associated with. |
private java.util.ArrayList |
failureReasons
Collection of reasons why context size could not be determined. |
private boolean |
ignoreNonSerializable
This flag determines if the context size will continue to be calculated even when a non-serializable objects are found. |
Constructor Summary | |
ContextSize(javax.servlet.ServletContext inContext)
constructor. |
Method Summary | |
int |
getContextSize()
This method is used to get the total size of a current, valid ServletContext object it is passed. |
void |
setIgnoreNonSerializable(boolean inSetting)
Mutator for the ignoreNonSerializable field. |
java.util.List |
whyFailed()
When getContextSize() 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.ServletContext context
private java.util.ArrayList failureReasons
private boolean ignoreNonSerializable
Constructor Detail |
public ContextSize(javax.servlet.ServletContext inContext)
inContext
- object this object will be associated with.Method Detail |
public void setIgnoreNonSerializable(boolean inSetting)
inSetting
- True to calculate context size regardless of whether
non-serializable objects are found in it, false
otherwise (false is the default).public int getContextSize()
public java.util.List whyFailed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |