Constructor and Description |
---|
MockSession() |
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.
|
public void setAttribute(String key, Serializable value)
Session
setAttribute
in interface Session
key
- the keyvalue
- obejct to storepublic Serializable getAttribute(String key)
Session
null
.getAttribute
in interface Session
key
- the keynull
Copyright © 2008–2018. All rights reserved.