Package com.sun.xml.ws.runtime.dev
Class Session
java.lang.Object
com.sun.xml.ws.runtime.dev.Session
The
Session object is used to manage state between multiple requests
from the same client. It contains a session key field to uniquely identify the Session,
a SecurityInfo field 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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSession()Session(SessionManager manager, String key, Object userData) Public constructor -
Method Summary
Modifier and TypeMethodDescriptionAccessor for thesecurityInfofield.Accessor for Session Key.Accessor for theuserDatafield.voidsave()Saves the state of the session using whatever persistence mechanism theSessionManageroffers.voidsetSecurityInfo(SecurityContextTokenInfo securityInfo) Mutator for thesecurityInfofield.
-
Field Details
-
SESSION_ID_KEY
Well-known invocationProperty names- See Also:
-
SESSION_KEY
- See Also:
-
-
Constructor Details
-
Session
protected Session() -
Session
Public constructor- Parameters:
manager- - ASessionManagerthat can handleSessionsof this type.key- - The unique session iduserData- - Holder for user-defined data.
-
-
Method Details
-
getSessionKey
Accessor for Session Key.- Returns:
- The session key
-
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
Mutator for thesecurityInfofield. -
save
public void save()Saves the state of the session using whatever persistence mechanism theSessionManageroffers.
-