java.lang.Object
com.sun.xml.ws.runtime.dev.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
  • Field Details

  • Constructor Details

    • 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
      userData - - Holder for user-defined data.
  • Method Details

    • getSessionKey

      @ManagedAttribute @Description("Session key") public String getSessionKey()
      Accessor for Session Key.
      Returns:
      The 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 SecurityContextTokenInfo getSecurityInfo()
      Accessor for the securityInfo field.
      Returns:
      The value of the field.
    • setSecurityInfo

      public void setSecurityInfo(SecurityContextTokenInfo securityInfo)
      Mutator for the securityInfo field.
    • save

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