Interface URLMapperService
-
- 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
-
-
Field Summary
Fields Modifier and Type Field Description static String
SERVICE_NAME
The service identifier.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
mapFromURL(String url, org.apache.fulcrum.parser.ParameterParser pp)
Map a simplified URL to a set of parametersvoid
mapToURL(TurbineURI uri)
Map a set of parameters (contained in TurbineURI PathInfo and QueryData) to a TurbineURI-
Methods inherited from interface org.apache.turbine.services.Initable
getInit, init, init, setInitableBroker, shutdown
-
Methods inherited from interface org.apache.turbine.services.Service
getConfiguration, getName, getProperties, setName, setServiceBroker
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
The service identifier.- See Also:
- Constant Field Values
-
-
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 URLpp
- a ParameterParser to use for parameter mangling
-
-