public class SessionHolder<T> extends Object
| Constructor and Description |
|---|
SessionHolder(String user,
StatelessClientContext creationContext)
Creates a new holder with the given authenticated user name and
creation context.
|
| Modifier and Type | Method and Description |
|---|---|
StatelessClientContext |
getCreationContext()
Returns the receiver's creation context.
|
T |
getSession()
Returns the receiver's session data.
|
String |
getUser()
Returns the receiver's user.
|
void |
setSession(T session)
Sets the receiver's session data to the given value.
|
public SessionHolder(String user, StatelessClientContext creationContext)
user - The user name.creationContext - The context.public String getUser()
public StatelessClientContext getCreationContext()
public void setSession(T session)
session - The data, which may be null.public T getSession()
Copyright © 2015. All Rights Reserved.