com.liferay.faces.bridge.container.liferay
Class LiferayURLFactoryImpl
java.lang.Object
com.liferay.faces.bridge.container.liferay.LiferayURLFactory
com.liferay.faces.bridge.container.liferay.LiferayURLFactoryImpl
- All Implemented Interfaces:
- FactoryWrapper<LiferayURLFactory>, javax.faces.FacesWrapper<LiferayURLFactory>
public class LiferayURLFactoryImpl
- extends LiferayURLFactory
This class implements the 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.
- Author:
- Neil Griffin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LiferayURLFactoryImpl
public LiferayURLFactoryImpl()
getLiferayActionURL
public LiferayActionURL getLiferayActionURL(BridgeContext bridgeContext,
javax.portlet.MimeResponse mimeResponse,
String responseNamespace,
boolean friendlyURLMapperEnabled)
- Specified by:
getLiferayActionURL in class LiferayURLFactory
getLiferayRenderURL
public LiferayRenderURL getLiferayRenderURL(BridgeContext bridgeContext,
javax.portlet.MimeResponse mimeResponse,
String responseNamespace,
boolean friendlyURLMapperEnabled)
- Specified by:
getLiferayRenderURL in class LiferayURLFactory
getLiferayResourceURL
public LiferayResourceURL getLiferayResourceURL(BridgeContext bridgeContext,
javax.portlet.MimeResponse mimeResponse,
String responseNamespace,
boolean friendlyURLMapperEnabled)
- Specified by:
getLiferayResourceURL in class LiferayURLFactory
getWrapped
public LiferayURLFactory getWrapped()
Copyright © 2014 Liferay, Inc.. All Rights Reserved.