com.liferay.util.bridges.alloy
Class AlloyFriendlyURLMapper
java.lang.Object
com.liferay.portal.kernel.portlet.BaseFriendlyURLMapper
com.liferay.portal.kernel.portlet.DefaultFriendlyURLMapper
com.liferay.util.bridges.alloy.AlloyFriendlyURLMapper
- All Implemented Interfaces:
- FriendlyURLMapper
public class AlloyFriendlyURLMapper
- extends DefaultFriendlyURLMapper
Methods inherited from class com.liferay.portal.kernel.portlet.BaseFriendlyURLMapper |
addParam, addParam, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, getMapping, getNamespace, getPortletId, getRouter, isCheckMappingWithPrefix, isPortletInstanceable, setMapping, setPortletId, setPortletInstanceable, setRouter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlloyFriendlyURLMapper
public AlloyFriendlyURLMapper()
buildPath
public String buildPath(LiferayPortletURL liferayPortletURL)
- Description copied from interface:
FriendlyURLMapper
- Generates a friendly URL path from the portlet URL object.
- Specified by:
buildPath
in interface FriendlyURLMapper
- Overrides:
buildPath
in class DefaultFriendlyURLMapper
- Parameters:
liferayPortletURL
- the portlet URL object to generate a friendly
URL for
- Returns:
- the generated friendly URL, or
null
if one cannot be
built. Returning null
will cause a normal portlet
URL to be generated.
populateParams
public void populateParams(String friendlyURLPath,
Map<String,String[]> parameterMap,
Map<String,Object> requestContext)
- Description copied from interface:
FriendlyURLMapper
- Populates the parameter map with values parsed from the friendly URL
path.
This method is called by PortalImpl
when
a friendly URL is processed.
- Specified by:
populateParams
in interface FriendlyURLMapper
- Overrides:
populateParams
in class DefaultFriendlyURLMapper
- Parameters:
friendlyURLPath
- the friendly URL path, including a leading slash
and the friendly URL mapping. For example:
/blogs/example-post
parameterMap
- the parameter map. Entries added to this map must be
namespaced.requestContext
- the request context- See Also:
BaseFriendlyURLMapper.addParameter(Map, String, String)
,
BaseFriendlyURLMapper.addParameter(String, Map, String, String)
getLifecycle
protected String getLifecycle(javax.servlet.http.HttpServletRequest request)