Liferay 6.2-ce-ga5

com.liferay.util.bridges.alloy
Class AlloyFriendlyURLMapper

java.lang.Object
  extended by com.liferay.portal.kernel.portlet.BaseFriendlyURLMapper
      extended by com.liferay.portal.kernel.portlet.DefaultFriendlyURLMapper
          extended by com.liferay.util.bridges.alloy.AlloyFriendlyURLMapper
All Implemented Interfaces:
FriendlyURLMapper

public class AlloyFriendlyURLMapper
extends DefaultFriendlyURLMapper


Field Summary
 
Fields inherited from class com.liferay.portal.kernel.portlet.DefaultFriendlyURLMapper
defaultIgnoredParameters, defaultReservedParameters
 
Fields inherited from class com.liferay.portal.kernel.portlet.BaseFriendlyURLMapper
router
 
Constructor Summary
AlloyFriendlyURLMapper()
           
 
Method Summary
 String buildPath(LiferayPortletURL liferayPortletURL)
          Generates a friendly URL path from the portlet URL object.
protected  String getLifecycle(javax.servlet.http.HttpServletRequest request)
           
 void populateParams(String friendlyURLPath, Map<String,String[]> parameterMap, Map<String,Object> requestContext)
          Populates the parameter map with values parsed from the friendly URL path.
 
Methods inherited from class com.liferay.portal.kernel.portlet.DefaultFriendlyURLMapper
addDefaultIgnoredParameter, addDefaultReservedParameter, addParametersIncludedInPath, buildRouteParameters, getDefaultIgnoredParameters, getDefaultReservedParameters, getPortletId, populateParams
 
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
 

Constructor Detail

AlloyFriendlyURLMapper

public AlloyFriendlyURLMapper()
Method Detail

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)

Liferay 6.2-ce-ga5