Package io.varhttp
Class VarConfig
java.lang.Object
io.varhttp.VarConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionforceRequestsSecure
(boolean serverSecure) Caution using this method.int
getPort()
boolean
setPort
(int port)
-
Constructor Details
-
VarConfig
public VarConfig()
-
-
Method Details
-
getPort
public int getPort() -
setPort
-
isForceRequestSecure
public boolean isForceRequestSecure()- Returns:
- a boolean indicating if the requests need to be force to a secure channel.
- See Also:
-
forceRequestsSecure
Caution using this method. Passing
true
to the method will make your server requests behave as secured. In other words this will affect the output ofVarHttpServletRequest.isSecure()
This can be useful if your server is behind a proxy/load balancer and is in a secure channel.
The default behaviour is
false
.- Returns:
- updated
VarConfig
instance.
-