Package org.apache.ofbiz.widget.content
Class StaticContentUrlProvider
java.lang.Object
org.apache.ofbiz.widget.content.StaticContentUrlProvider
Generates URL strings for addressing static content based properties configured on an HttpRequest's website or
configured properties in url.properties.
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate a new URL provider for given HttpServletRequest's website. -
Method Summary
Modifier and TypeMethodDescriptionpathAsContentUrlString
(String resourcePath) Given a path to a static content resource, return the URL string that a client can use to retrieve that resource.
-
Constructor Details
-
StaticContentUrlProvider
Create a new URL provider for given HttpServletRequest's website.- Parameters:
request
- The HttpServletRequest request to look up the website for.
-
-
Method Details
-
pathAsContentUrlString
Given a path to a static content resource, return the URL string that a client can use to retrieve that resource.- Parameters:
resourcePath
- Path to static resource- Returns:
- String representation of the URL which can be used to retrieve the static resource.
-