Package org.apache.ofbiz.webapp.website
Class WebSiteProperties
java.lang.Object
org.apache.ofbiz.webapp.website.WebSiteProperties
Web site properties.
-
Method Summary
Modifier and TypeMethodDescriptionstatic WebSiteProperties
Returns aWebSiteProperties
instance initialized to the settings found in theurl.properties
file.static WebSiteProperties
from
(HttpServletRequest request) Returns aWebSiteProperties
instance initialized to the settings found in the application's WebSite entity value.static WebSiteProperties
from
(GenericValue webSiteValue) Returns aWebSiteProperties
instance initialized to the settings found in the WebSite entity value.boolean
Returnstrue
if https is enabled.Returns the configured http host, or an emptyString
if not configured.Returns the configured http port, or an emptyString
if not configured.Returns the configured https host, or an emptyString
if not configured.Returns the configured https port, or an emptyString
if not configured.Returns the configured webapp path on website linked to webapp or null.toString()
-
Method Details
-
defaults
Returns aWebSiteProperties
instance initialized to the settings found in theurl.properties
file. -
from
Returns aWebSiteProperties
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 theurl.properties
file.- Parameters:
request
-- Throws:
GenericEntityException
-
from
Returns aWebSiteProperties
instance initialized to the settings found in the WebSite entity value.- Parameters:
webSiteValue
-
-
getHttpPort
Returns the configured http port, or an emptyString
if not configured. -
getHttpHost
Returns the configured http host, or an emptyString
if not configured. -
getHttpsPort
Returns the configured https port, or an emptyString
if not configured. -
getHttpsHost
Returns the configured https host, or an emptyString
if not configured. -
getEnableHttps
public boolean getEnableHttps()Returnstrue
if https is enabled. -
getWebappPath
Returns the configured webapp path on website linked to webapp or null. -
toString
-