public class TransientWrapper
extends java.lang.Object
Constructor and Description |
---|
TransientWrapper(java.lang.Object value)
Wrap an object.
|
Modifier and Type | Method and Description |
---|---|
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
|
public TransientWrapper(java.lang.Object value)
value
- 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@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.