Class HttpsConfig

java.lang.Object
org.apache.wicket.protocol.https.HttpsConfig

public class HttpsConfig extends Object
Configuration for http-https switching
See Also:
  • Constructor Details

    • HttpsConfig

      public HttpsConfig()
      Constructor
    • HttpsConfig

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

    • 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
    • isPreferStateful

      public boolean isPreferStateful()
      Returns:
      preferStateless
      See Also:
    • 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 -