public class LiferayURLFactoryImpl extends LiferayURLFactory
LiferayURLFactory contract for creating Liferay-compatible URLs. The design
provides a performance optimization that was first introduced in FACES-220 and FACES-245. The optimization prevents
repetitive calls to Liferay Portal's BaseURL.toString() method by ensuring that the toString() method of
MimeResponse.createActionURL(), MimeResponse.createRenderURL(), and MimeResponse.createResourceURL() are called only once during the JSF lifecycle, and that the pertinent parts of the
String are cached. However, the optimization is only usable for portlets that do not have an associated Liferay
FriendlyURLMapper. For more info, see FACES-257.| Constructor and Description |
|---|
LiferayURLFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
LiferayActionURL |
getLiferayActionURL(javax.portlet.PortletRequest portletRequest,
javax.portlet.MimeResponse mimeResponse,
boolean friendlyURLMapperEnabled) |
LiferayRenderURL |
getLiferayRenderURL(javax.portlet.PortletRequest portletRequest,
javax.portlet.MimeResponse mimeResponse,
boolean friendlyURLMapperEnabled) |
LiferayResourceURL |
getLiferayResourceURL(javax.portlet.PortletRequest portletRequest,
javax.portlet.MimeResponse mimeResponse,
boolean friendlyURLMapperEnabled) |
LiferayURLFactory |
getWrapped() |
public LiferayActionURL getLiferayActionURL(javax.portlet.PortletRequest portletRequest, javax.portlet.MimeResponse mimeResponse, boolean friendlyURLMapperEnabled)
getLiferayActionURL in class LiferayURLFactorypublic LiferayRenderURL getLiferayRenderURL(javax.portlet.PortletRequest portletRequest, javax.portlet.MimeResponse mimeResponse, boolean friendlyURLMapperEnabled)
getLiferayRenderURL in class LiferayURLFactorypublic LiferayResourceURL getLiferayResourceURL(javax.portlet.PortletRequest portletRequest, javax.portlet.MimeResponse mimeResponse, boolean friendlyURLMapperEnabled)
getLiferayResourceURL in class LiferayURLFactorypublic LiferayURLFactory getWrapped()
Copyright © 2016 Liferay, Inc.. All rights reserved.