@ProviderType
public interface AbsolutePortalURLBuilder
Each for[Resource] method returns a URL builder for the named
resource. Algorithms may differ between builders. In general, the builders
construct URLs that honor existing proxy paths unless a CDN host is being
used.
BuildableAbsolutePortalURLBuilder| Modifier and Type | Method and Description |
|---|---|
BrowserModuleAbsolutePortalURLBuilder |
forBrowserModule(java.lang.String browserModulePath)
Returns a URL builder for AMD JavaScript files.
|
BundleScriptAbsolutePortalURLBuilder |
forBundleScript(org.osgi.framework.Bundle bundle,
java.lang.String relativeURL)
Returns a URL builder for bundle JavaScript files.
|
BundleStylesheetAbsolutePortalURLBuilder |
forBundleStylesheet(org.osgi.framework.Bundle bundle,
java.lang.String relativeURL)
Returns a URL builder for bundle stylesheets.
|
ComboRequestAbsolutePortalURLBuilder |
forComboRequest()
Returns a URL builder for JavaScript combo servlet requests.
|
PortalImageAbsolutePortalURLBuilder |
forPortalImage(java.lang.String relativeURL)
Returns a URL builder for portal images.
|
PortalMainResourceAbsolutePortalURLBuilder |
forPortalMainResource(java.lang.String relativeURL)
Returns a URL builder for portal's main resources.
|
PortletDependencyAbsolutePortalURLBuilder |
forPortletDependency(com.liferay.portal.kernel.model.portlet.PortletDependency portletDependency,
java.lang.String cssURN,
java.lang.String javaScriptURN)
Returns a URL builder for portlet dependency resources.
|
ServletAbsolutePortalURLBuilder |
forServlet(java.lang.String requestURL)
Returns a URL builder for requests to dynamic content returned by
servlets.
|
BrowserModuleAbsolutePortalURLBuilder forBrowserModule(java.lang.String browserModulePath)
browserModulePath - the browser module path (e.g.
/o/js/resolved-module/... or a legacy config generator module
path too)BundleScriptAbsolutePortalURLBuilder forBundleScript(org.osgi.framework.Bundle bundle, java.lang.String relativeURL)
bundle - the bundle that contains the resourcerelativeURL - the JavaScript file relative URLBundleStylesheetAbsolutePortalURLBuilder forBundleStylesheet(org.osgi.framework.Bundle bundle, java.lang.String relativeURL)
bundle - the bundle that contains the resourcerelativeURL - the stylesheets relative URLComboRequestAbsolutePortalURLBuilder forComboRequest()
PortalImageAbsolutePortalURLBuilder forPortalImage(java.lang.String relativeURL)
com.liferay.portal.kernel.util.Portal#PATH_IMAGE.relativeURL - the image's relative URLPortalMainResourceAbsolutePortalURLBuilder forPortalMainResource(java.lang.String relativeURL)
com.liferay.portal.kernel.util.Portal#PATH_MAIN.relativeURL - the resource's relative URLPortletDependencyAbsolutePortalURLBuilder forPortletDependency(com.liferay.portal.kernel.model.portlet.PortletDependency portletDependency, java.lang.String cssURN, java.lang.String javaScriptURN)
portletDependency - the portlet dependency resourcecssURN - the URN for CSS portlet dependency resourcesjavaScriptURN - the URN for JavaScript portlet dependency resourcesServletAbsolutePortalURLBuilder forServlet(java.lang.String requestURL)
requestURL - the API's request URL