Class HttpSessionManager.DefaultHttpSessionManager

    • Method Detail

      • createSession

        public HttpSession createSession​(HttpServer server,
                                         NetPackage netPackage)
        Default http session factory creation.
        Specified by:
        createSession in interface HttpSessionManager
        Parameters:
        server - Http server associated to the factory.
        netPackage - Net package before to be decoded to a request object.
        Returns:
        Default http session factory.
      • checkSession

        public HttpSession checkSession​(HttpSession session,
                                        HttpRequest request)
        This method must update the session with the information into the request.
        Specified by:
        checkSession in interface HttpSessionManager
        Parameters:
        session - Net session.
        request - Request object.
        Returns:
        Http session updated.
      • destroySession

        public HttpSession destroySession​(HttpSession session)
        This method must update the session object when the session is destroyed.
        Specified by:
        destroySession in interface HttpSessionManager
        Parameters:
        session - Net session.
        Returns:
        Http session updated.