Class HTTPSession

  • All Implemented Interfaces:
    Session

    public class HTTPSession
    extends Object
    implements Session
    A session implementation bound to HTTP.
    • Constructor Detail

      • HTTPSession

        public HTTPSession​(javax.servlet.http.HttpServletRequest request)
    • Method Detail

      • get

        public Object get​(Object key)
        Description copied from interface: Session
        Get a variable from the session by the key.
        Specified by:
        get in interface Session
        Returns:
        Value
      • put

        public void put​(Object key,
                        Object value)
        Description copied from interface: Session
        Put a variable into the session with a key.
        Specified by:
        put in interface Session
      • getSession

        public javax.servlet.http.HttpSession getSession()