Class HttpsConfig

    • Constructor Detail

      • HttpsConfig

        public HttpsConfig​(int httpPort,
                           int httpsPort)
        Constructor
        Parameters:
        httpPort - http port
        httpsPort - https port
    • Method Detail

      • setHttpPort

        public void setHttpPort​(int httpPort)
        Sets http port
        Parameters:
        httpPort -
      • setHttpsPort

        public void setHttpsPort​(int httpsPort)
        Sets https port
        Parameters:
        httpsPort -
      • getHttpPort

        public int getHttpPort()
        Returns:
        http port
      • getHttpsPort

        public int getHttpsPort()
        Returns:
        https port
      • setPreferStateful

        public void setPreferStateful​(boolean preferStateful)
        Sets whether or not a new session is created before redirecting from http to https

        BE VERY CAREFUL WHEN SETTING THIS VALUE TO false. If set to false it is possible that the session created when in https pages will not be accessible to http pages, and so you may end up with two sessions per user both potentially containing different login information.

        Parameters:
        preferStateful -