Interface URLMapperService

  • All Superinterfaces:
    Initable, Service
    All Known Implementing Classes:
    TurbineURLMapperService

    public interface URLMapperService
    extends Service
    The URL mapper service provides methods to map a set of parameters to a simplified URL and vice-versa. This service was inspired by the Liferay Friendly URL Mapper. A mapper valve and a link pull tool are provided for easy application.
    Author:
    Thomas Vandahl
    • Method Detail

      • mapToURL

        void mapToURL​(TurbineURI uri)
        Map a set of parameters (contained in TurbineURI PathInfo and QueryData) to a TurbineURI
        Parameters:
        uri - the URI to be modified (with setScriptName())
      • mapFromURL

        void mapFromURL​(String url,
                        org.apache.fulcrum.parser.ParameterParser pp)
        Map a simplified URL to a set of parameters
        Parameters:
        url - the URL
        pp - a ParameterParser to use for parameter mangling