Class WebSiteProperties

java.lang.Object
org.apache.ofbiz.webapp.website.WebSiteProperties

@ThreadSafe public final class WebSiteProperties extends Object
Web site properties.
  • Method Details

    • defaults

      public static WebSiteProperties defaults(Delegator delegator)
      Returns a WebSiteProperties instance initialized to the settings found in the url.properties file.
    • from

      public static WebSiteProperties from(HttpServletRequest request) throws GenericEntityException
      Returns a WebSiteProperties instance initialized to the settings found in the application's WebSite entity value. If the application does not have a WebSite entity value then the instance is initialized to the settings found in the url.properties file.
      Parameters:
      request -
      Throws:
      GenericEntityException
    • from

      public static WebSiteProperties from(GenericValue webSiteValue)
      Returns a WebSiteProperties instance initialized to the settings found in the WebSite entity value.
      Parameters:
      webSiteValue -
    • getHttpPort

      public String getHttpPort()
      Returns the configured http port, or an empty String if not configured.
    • getHttpHost

      public String getHttpHost()
      Returns the configured http host, or an empty String if not configured.
    • getHttpsPort

      public String getHttpsPort()
      Returns the configured https port, or an empty String if not configured.
    • getHttpsHost

      public String getHttpsHost()
      Returns the configured https host, or an empty String if not configured.
    • getEnableHttps

      public boolean getEnableHttps()
      Returns true if https is enabled.
    • getWebappPath

      public String getWebappPath()
      Returns the configured webapp path on website linked to webapp or null.
    • toString

      public String toString()
      Overrides:
      toString in class Object