|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.ws.stateful.SessionHolder<T>
public class SessionHolder<T>
A session holder. It is created after successful authentication, and initially retains just the authenticated user name and client context at that time. In later calls during the same session, the service implementations may associate session data with the holder; it is the responsibility of the service implementations to ensure thread safety in manipulating that data.
| Constructor Summary | |
|---|---|
SessionHolder(String user,
StatelessClientContext creationContext)
Creates a new holder with the given authenticated user name and creation context. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionHolder(String user,
StatelessClientContext creationContext)
user - The user name.creationContext - The context.| Method Detail |
|---|
public String getUser()
public StatelessClientContext getCreationContext()
public void setSession(T session)
session - The data, which may be null.public T getSession()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||