Interface HttpSessionManager

  • All Known Implementing Classes:
    HttpSessionManager.DefaultHttpSessionManager

    public interface HttpSessionManager
    This class is a factory in order to implements a method to create and organize the http sessions.
    Author:
    javaito
    • Method Detail

      • createSession

        HttpSession createSession​(HttpServer server,
                                  NetPackage netPackage)
        Starts with the http session creation.
        Parameters:
        server - Http server associated to the factory.
        netPackage - Net package before to be decoded to a request object.
        Returns:
        Return a http session instance.
      • checkSession

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

        HttpSession destroySession​(HttpSession session)
        This method must update the session object when the session is destroyed.
        Parameters:
        session - Net session.
        Returns:
        Http session updated.