|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.util.TransientWrapper
public class TransientWrapper
Provides a means to exclude serializable objects from serialization mechanisms by wrapping them.
Constructor Summary | |
---|---|
TransientWrapper(java.lang.Object value)
Wrap an object. |
Method Summary | |
---|---|
static java.lang.Object |
getAttribute(javax.servlet.http.HttpSession session,
java.lang.String name)
Gets the object bound with the specified name from an http session. |
static void |
setAttribute(javax.servlet.http.HttpSession session,
java.lang.String name,
java.lang.Object value)
Binds an object to a http session, using the name specified. |
java.lang.String |
toString()
|
java.lang.Object |
unwrap()
Unwrap a wrapped object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TransientWrapper(java.lang.Object value)
value
- Method Detail |
---|
public java.lang.Object unwrap()
public java.lang.String toString()
toString
in class java.lang.Object
public static void setAttribute(javax.servlet.http.HttpSession session, java.lang.String name, java.lang.Object value)
session
- a HTTPSession to bind the object to.name
- the name to which the object is bound; cannot be nullvalue
- the object to be boundpublic static java.lang.Object getAttribute(javax.servlet.http.HttpSession session, java.lang.String name)
session
- a HTTPSession where the object is boundname
- a string specifying the name of the object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |