Class TurbineURLMapperService
- java.lang.Object
- 
- org.apache.turbine.services.BaseInitable
- 
- org.apache.turbine.services.BaseService
- 
- org.apache.turbine.services.TurbineBaseService
- 
- org.apache.turbine.services.urlmapper.TurbineURLMapperService
 
 
 
 
- 
- All Implemented Interfaces:
- Initable,- Service,- URLMapperService
 
 public class TurbineURLMapperService extends TurbineBaseService implements URLMapperService 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. - Version:
- $Id$
- Author:
- Thomas Vandahl
- See Also:
- URLMapperService,- MappedTemplateLink,- URLMapperValve
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.turbine.services.BaseServiceconfiguration, name, serviceBroker
 - 
Fields inherited from class org.apache.turbine.services.BaseInitableinitableBroker, isInitialized
 - 
Fields inherited from interface org.apache.turbine.services.ServiceSERVICE_NAME
 - 
Fields inherited from interface org.apache.turbine.services.urlmapper.URLMapperServiceSERVICE_NAME
 
- 
 - 
Constructor SummaryConstructors Constructor Description TurbineURLMapperService()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()Initializes the service.voidmapFromURL(String url, org.apache.fulcrum.parser.ParameterParser pp)Map a simplified URL to a set of parametersvoidmapToURL(TurbineURI uri)Map a set of parameters (contained in TurbineURI PathInfo and QueryData) to a TurbineURIvoidshutdown()Returns to uninitialized state.- 
Methods inherited from class org.apache.turbine.services.TurbineBaseServiceinit, init
 - 
Methods inherited from class org.apache.turbine.services.BaseServicegetConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker
 - 
Methods inherited from class org.apache.turbine.services.BaseInitablegetInit, getInitableBroker, setInit, setInitableBroker
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.turbine.services.InitablegetInit, init, setInitableBroker
 - 
Methods inherited from interface org.apache.turbine.services.ServicegetConfiguration, getName, getProperties, setName, setServiceBroker
 
- 
 
- 
- 
- 
Constructor Detail- 
TurbineURLMapperServicepublic TurbineURLMapperService() 
 
- 
 - 
Method Detail- 
mapToURLpublic void mapToURL(TurbineURI uri) Map a set of parameters (contained in TurbineURI PathInfo and QueryData) to a TurbineURI- Specified by:
- mapToURLin interface- URLMapperService
- Parameters:
- uri- the URI to be modified (with setScriptName())
 
 - 
mapFromURLpublic void mapFromURL(String url, org.apache.fulcrum.parser.ParameterParser pp) Map a simplified URL to a set of parameters- Specified by:
- mapFromURLin interface- URLMapperService
- Parameters:
- url- the URL
- pp- a ParameterParser to use for parameter mangling
 
 - 
initpublic void init() throws InitializationException Initializes the service.- Specified by:
- initin interface- Initable
- Overrides:
- initin class- TurbineBaseService
- Throws:
- InitializationException- if initialization of this class was not successful.
 
 - 
shutdownpublic void shutdown() Returns to uninitialized state.- Specified by:
- shutdownin interface- Initable
- Overrides:
- shutdownin class- TurbineBaseService
 
 
- 
 
-