Package org.apache.wicket.protocol.https
Class HttpsConfig
- java.lang.Object
-
- org.apache.wicket.protocol.https.HttpsConfig
-
public class HttpsConfig extends Object
Configuration for http-https switching- See Also:
HttpsMapper
-
-
Constructor Summary
Constructors Constructor Description HttpsConfig()
ConstructorHttpsConfig(int httpPort, int httpsPort)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHttpPort()
int
getHttpsPort()
boolean
isPreferStateful()
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 Detail
-
HttpsConfig
public HttpsConfig()
Constructor
-
HttpsConfig
public HttpsConfig(int httpPort, int httpsPort)
Constructor- Parameters:
httpPort
- http porthttpsPort
- 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
-
isPreferStateful
public boolean isPreferStateful()
- Returns:
- preferStateless
- See Also:
setPreferStateful(boolean)
-
setPreferStateful
public void setPreferStateful(boolean preferStateful)
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
-
-
-