public class MWHttpSessionBinder
extends java.lang.Object
WebFigure f;
session.setAttribute("figure-1", f);
session.setAttribute("figure-1_binder", new MWHttpSessionBinder(f));
| Constructor and Description |
|---|
MWHttpSessionBinder()
Create an empty MWHttpSessionBinder.
|
MWHttpSessionBinder(Disposable object)
Create an MWHttpSessionBinder to dispose of the given object when
it is unbound from an HttpSession.
|
| Modifier and Type | Method and Description |
|---|---|
Disposable |
getObject()
Get the object bound by this MWHttpSessionBinder.
|
void |
setObject(Disposable object)
Set the object to be bound by this MWHttpSessionBinder.
|
void |
valueBound(HttpSessionBindingEvent httpSessionBindingEvent) |
void |
valueUnbound(HttpSessionBindingEvent httpSessionBindingEvent) |
public MWHttpSessionBinder()
public MWHttpSessionBinder(Disposable object)
object - The object to bind to the lifetime of the session.public Disposable getObject()
public void setObject(Disposable object)
object - the object to be bound by this MWHttpSessionBinder.public void valueBound(HttpSessionBindingEvent httpSessionBindingEvent)
public void valueUnbound(HttpSessionBindingEvent httpSessionBindingEvent)
© 1994-2008 The MathWorks, Inc. Terms of Use Patents Trademarks