public interface AbsolutePortalURLBuilder
BuildableAbsolutePortalURLBuilder
Modifier and Type | Method and Description |
---|---|
ImageAbsolutePortalURLBuilder |
forImage(java.lang.String relativeURL)
Returns URLs for portal images.
|
MainAbsolutePortalURLBuilder |
forMain(java.lang.String relativeURL)
Returns URLs for portal's main resources.
|
ModuleAbsolutePortalURLBuilder |
forModule(java.lang.String relativeURL)
Returns URLs for module resources.
|
PortletDependencyAbsolutePortalURLBuilder |
forPortletDependency(com.liferay.portal.kernel.model.portlet.PortletDependency portletDependency,
java.lang.String cssURN,
java.lang.String javaScriptURN)
Returns URLs for portlet dependency resources.
|
ResourceAbsolutePortalURLBuilder |
forResource(java.lang.String relativeURL)
Returns URLs for arbitrary resources.
|
AbsolutePortalURLBuilder |
ignoreCDNHost()
Returns absolute URLs without the CDN part.
|
AbsolutePortalURLBuilder |
ignorePathProxy()
Returns absolute URLs without the proxy part.
|
ImageAbsolutePortalURLBuilder forImage(java.lang.String relativeURL)
com.liferay.portal.kernel.util.Portal#PATH_IMAGE
.
Image resources are retrieved from the CDN host when present or from the
Portal otherwise.relativeURL
- the image's relative URLMainAbsolutePortalURLBuilder forMain(java.lang.String relativeURL)
com.liferay.portal.kernel.util.Portal#PATH_MAIN
.
Main resources are retrieved from the CDN host when present or from the
Portal otherwise.relativeURL
- the resource's relative URLModuleAbsolutePortalURLBuilder forModule(java.lang.String relativeURL)
com.liferay.portal.kernel.util.Portal#PATH_MODULE
+ bundle's web
context path.
Module resources are retrieved from the CDN host when present or from the
Portal otherwise.relativeURL
- the resource's relative URLPortletDependencyAbsolutePortalURLBuilder forPortletDependency(com.liferay.portal.kernel.model.portlet.PortletDependency portletDependency, java.lang.String cssURN, java.lang.String javaScriptURN)
PropsKeys#PORTLET_DEPENDENCY_CSS_URN
and
PropsKeys#PORTLET_DEPENDENCY_JAVASCRIPT_URN
) when present.
If not present, the resource will be retrieved from the CDN host when
present or the Portal itself otherwise.portletDependency
- the portlet dependency resourcecssURN
- the URN for CSS portlet dependency resourcesjavaScriptURN
- the URN for JavaScript portlet dependency resourcesResourceAbsolutePortalURLBuilder forResource(java.lang.String relativeURL)
relativeURL
- the resource's relative URLAbsolutePortalURLBuilder ignoreCDNHost()
com.liferay.portal.kernel.util.Portal#getCDNHost(
javax.servlet.http.HttpServletRequest)
AbsolutePortalURLBuilder ignorePathProxy()
com.liferay.portal.kernel.util.Portal#getPathProxy()