java.lang.Object
org.apache.wicket.protocol.https.HttpsConfig
Configuration for http-https switching
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
boolean
void
setHttpPort
(int httpPort) Sets http portvoid
setHttpsPort
(int httpsPort) Sets https portvoid
setPreferStateful
(boolean preferStateful) Sets whether or not a new session is created before redirecting fromhttp
tohttps
-
Constructor Details
-
HttpsConfig
public HttpsConfig()Constructor -
HttpsConfig
Constructor- Parameters:
httpPort
- http porthttpsPort
- https port
-
-
Method Details
-
setHttpPort
Sets http port- Parameters:
httpPort
-
-
setHttpsPort
Sets https port- Parameters:
httpsPort
-
-
getHttpPort
- Returns:
- http port
-
getHttpsPort
- Returns:
- https port
-
isPreferStateful
- Returns:
- preferStateless
- See Also:
-
setPreferStateful
Sets whether or not a new session is created before redirecting fromhttp
tohttps
BE VERY CAREFUL WHEN SETTING THIS VALUE TO
false
. If set tofalse
it is possible that the session created when inhttps
pages will not be accessible tohttp
pages, and so you may end up with two sessions per user both potentially containing different login information.- Parameters:
preferStateful
-
-