Class Addresses

java.lang.Object
com.djrapitops.plan.delivery.webserver.Addresses

@Singleton public class Addresses extends Object
In charge of address management.

Possible scenarios (problem domain): - IP in server properties is 0.0.0.0 which is invalid - IP in server properties is empty string, which is invalid - Alternative IP is set in the Plan config - Proxy server is used as main webserver, this address has highest priority - Webserver is disabled, external webserver address in config should be used - Webserver uses either http or https - Webserver always has a port, but Alternative IP can be used to remove the port from the address

What are the addresses used in: - Given as links to commands - Redirection - Storing proxy server address in database

  • Constructor Details

  • Method Details

    • getMainAddress

      public Optional<String> getMainAddress()
    • getAccessAddress

      public Optional<String> getAccessAddress()
    • getFallbackLocalhostAddress

      public String getFallbackLocalhostAddress()
    • getProxyServerAddress

      public Optional<String> getProxyServerAddress()
    • getServerPropertyIP

      public Optional<String> getServerPropertyIP()