Class Session


  • @ManagedData
    @Description("RM and SC session information")
    public class Session
    extends Object
    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
    • Constructor Detail

      • Session

        protected Session()
      • Session

        public Session​(SessionManager manager,
                       String key,
                       Object userData)
        Public constructor
        Parameters:
        manager - - A SessionManager that can handle Sessions of this type.
        key - - The unique session id
        data - - Holder for user-defined data.
    • Method Detail

      • getSessionKey

        @ManagedAttribute
        @Description("Session key")
        public String getSessionKey()
        Accessor for Session Key.
      • getUserData

        public Object getUserData()
        Accessor for the userData field.
        Returns:
        The value of the field.
      • getSecurityInfo

        @ManagedAttribute
        @Description("Security context token info")
        public com.sun.xml.ws.security.SecurityContextTokenInfo getSecurityInfo()
        Accessor for the securityInfo field.
      • setSecurityInfo

        public void setSecurityInfo​(com.sun.xml.ws.security.SecurityContextTokenInfo securityInfo)
        Mutator for the securityInfo field.
      • save

        public void save()
        Saves the state of the session using whatever persistence mechanism the SessionManager offers.