public interface Session
Modifier and Type | Method and Description |
---|---|
Serializable |
getAttribute(String key)
Retrieves an Object previously stored with method @see #setSessionAttribute(String, Serializable) or
null . |
void |
setAttribute(String key,
Serializable value)
Stores an object that can be reused across successive http requests from the same user.
|
void setAttribute(String key, Serializable value)
key
- the keyvalue
- obejct to storeSerializable getAttribute(String key)
null
.key
- the keynull
Copyright © 2008–2018. All rights reserved.