Class WebScriptServletSession

  • All Implemented Interfaces:
    WebScriptSession

    public class WebScriptServletSession
    extends java.lang.Object
    implements WebScriptSession
    HTTP based Web Script Session
    Author:
    davidc
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.servlet.http.HttpSession session  
    • Constructor Summary

      Constructors 
      Constructor Description
      WebScriptServletSession​(javax.servlet.http.HttpSession session)
      Construct
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getId()
      Gets the id of the session
      java.lang.Object getValue​(java.lang.String name)
      Gets a value from the session
      void removeValue​(java.lang.String name)
      Remove value from the session
      void setValue​(java.lang.String name, java.lang.Object value)
      Sets a value in the session
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • session

        protected javax.servlet.http.HttpSession session
    • Constructor Detail

      • WebScriptServletSession

        public WebScriptServletSession​(javax.servlet.http.HttpSession session)
        Construct
        Parameters:
        session - HttpSession
    • Method Detail

      • getId

        public java.lang.String getId()
        Description copied from interface: WebScriptSession
        Gets the id of the session
        Specified by:
        getId in interface WebScriptSession
        Returns:
        session id
      • getValue

        public java.lang.Object getValue​(java.lang.String name)
        Description copied from interface: WebScriptSession
        Gets a value from the session
        Specified by:
        getValue in interface WebScriptSession
        Parameters:
        name - value name
        Returns:
        value
      • removeValue

        public void removeValue​(java.lang.String name)
        Description copied from interface: WebScriptSession
        Remove value from the session
        Specified by:
        removeValue in interface WebScriptSession
        Parameters:
        name - value name
      • setValue

        public void setValue​(java.lang.String name,
                             java.lang.Object value)
        Description copied from interface: WebScriptSession
        Sets a value in the session
        Specified by:
        setValue in interface WebScriptSession
        Parameters:
        name - value name
        value - value