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(org.osgi.framework.Bundle bundle,
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.
|
WhiteboardAbsolutePortalURLBuilder |
forWhiteboard(java.lang.String servletPattern)
Returns URLs for OSGi whiteboard servlet instances.
|
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
.relativeURL
- the image's relative URLMainAbsolutePortalURLBuilder forMain(java.lang.String relativeURL)
com.liferay.portal.kernel.util.Portal#PATH_MAIN
.relativeURL
- the resource's relative URLModuleAbsolutePortalURLBuilder forModule(org.osgi.framework.Bundle bundle, java.lang.String relativeURL)
com.liferay.portal.kernel.util.Portal#PATH_MODULE
+ bundle's web context
path.bundle
- the bundle that contains the resourcerelativeURL
- 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 resourcesResourceAbsolutePortalURLBuilder forResource(java.lang.String relativeURL)
relativeURL
- the resource's relative URLPortalContextLoaderListener.getPortalServletContextPath()
WhiteboardAbsolutePortalURLBuilder forWhiteboard(java.lang.String servletPattern)
com.liferay.portal.kernel.util.Portal#PATH_MODULE
.servletPattern
- the value of the
osgi.http.whiteboard.servlet.pattern propertyAbsolutePortalURLBuilder ignoreCDNHost()
com.liferay.portal.kernel.util.Portal#getCDNHost(
javax.servlet.http.HttpServletRequest)
AbsolutePortalURLBuilder ignorePathProxy()
com.liferay.portal.kernel.util.Portal#getPathProxy()