Package com.sun.xml.ws.runtime.dev
Class Session
- java.lang.Object
-
- com.sun.xml.ws.runtime.dev.Session
-
@ManagedData @Description("RM and SC session information") public class Session extends ObjectTheSessionobject is used to manage state between multiple requests from the same client. It contains a session key field to uniquely identify the Session, aSecurityInfofield that contains the security parameters used to protect the session and userdata field that can store the state for multiple requests from the client.- Author:
- Bhakti Mehta, Mike Grogan
-
-
Field Summary
Fields Modifier and Type Field Description static StringSESSION_ID_KEYWell-known invocationProperty namesstatic StringSESSION_KEY
-
Constructor Summary
Constructors Modifier Constructor Description protectedSession()Session(SessionManager manager, String key, Object userData)Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityContextTokenInfogetSecurityInfo()Accessor for thesecurityInfofield.StringgetSessionKey()Accessor for Session Key.ObjectgetUserData()Accessor for theuserDatafield.voidsave()Saves the state of the session using whatever persistence mechanism theSessionManageroffers.voidsetSecurityInfo(SecurityContextTokenInfo securityInfo)Mutator for thesecurityInfofield.
-
-
-
Field Detail
-
SESSION_ID_KEY
public static final String SESSION_ID_KEY
Well-known invocationProperty names- See Also:
- Constant Field Values
-
SESSION_KEY
public static final String SESSION_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Session
protected Session()
-
Session
public Session(SessionManager manager, String key, Object userData)
Public constructor- Parameters:
manager- - ASessionManagerthat can handleSessionsof this type.key- - The unique session iduserData- - Holder for user-defined data.
-
-
Method Detail
-
getSessionKey
@ManagedAttribute @Description("Session key") public String getSessionKey()Accessor for Session Key.- Returns:
- The session key
-
getUserData
public Object getUserData()
Accessor for theuserDatafield.- Returns:
- The value of the field.
-
getSecurityInfo
@ManagedAttribute @Description("Security context token info") public SecurityContextTokenInfo getSecurityInfo()Accessor for thesecurityInfofield.- Returns:
- The value of the field.
-
setSecurityInfo
public void setSecurityInfo(SecurityContextTokenInfo securityInfo)
Mutator for thesecurityInfofield.
-
save
public void save()
Saves the state of the session using whatever persistence mechanism theSessionManageroffers.
-
-