Package io.varhttp

Class VarConfig

java.lang.Object
io.varhttp.VarConfig

public class VarConfig extends Object
  • Constructor Details

    • VarConfig

      public VarConfig()
  • Method Details

    • getPort

      public int getPort()
    • setPort

      public VarConfig setPort(int port)
    • isForceRequestSecure

      public boolean isForceRequestSecure()
      Returns:
      a boolean indicating if the requests need to be force to a secure channel.
      See Also:
    • forceRequestsSecure

      public VarConfig forceRequestsSecure(boolean serverSecure)

      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 of VarHttpServletRequest.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.