Klasse ContentTool
java.lang.Object
org.apache.turbine.services.pull.tools.ContentTool
- Alle implementierten Schnittstellen:
- ApplicationTool
Terribly simple tool to translate URIs into Turbine Links.
 Equivalent to URIUtils.getAbsoluteLink() in a pull tool.
 
If you're missing any routines from the 'old' $content tool concerning path_info or query data, you did use the wrong tool then. You should've used the TemplateLink tool which should be available as "$link" in your context.
This is an application pull tool for the template system. You should not use it in a normal application!
- Version:
- $Id$
- Autor:
- Henning P. Schmiedehausen, Peter Courcoux
- 
FeldübersichtFelderModifizierer und TypFeldBeschreibungstatic final booleanDefault Value for CONTENT_TOOL_ENCODING_KEYstatic final StringShould this tool add Container Encoding to the URIs returned?static final StringPrefix for Parameters for this toolstatic final booleanDefault Value for CONTENT_TOOL_RELATIVE_KEYstatic final StringShould this tool return relative URIs or absolute?
- 
KonstruktorübersichtKonstruktoren
- 
MethodenübersichtModifizierer und TypMethodeBeschreibunggetAbsoluteURI(String path) Returns the Turbine URI of a given Path.getRelativeURI(String path) Returns the Turbine URI of a given Path.Returns the Turbine URI of a given PathvoidThis will initialize a ContentTool object that was constructed with the default constructor (ApplicationTool method).voidrefresh()Refresh method - does nothing
- 
Felddetails- 
CONTENT_TOOL_PREFIXPrefix for Parameters for this tool- Siehe auch:
 
- 
CONTENT_TOOL_ENCODING_KEYShould this tool add Container Encoding to the URIs returned? True might cause trouble e.g. if you run with Apache HTTP Daemon / Tomcat Combo. Default is false (like Turbine 2.2)- Siehe auch:
 
- 
CONTENT_TOOL_ENCODING_DEFAULTDefault Value for CONTENT_TOOL_ENCODING_KEY- Siehe auch:
 
- 
CONTENT_TOOL_RELATIVE_KEYShould this tool return relative URIs or absolute? Default: Absolute.- Siehe auch:
 
- 
CONTENT_TOOL_RELATIVE_DEFAULTDefault Value for CONTENT_TOOL_RELATIVE_KEY- Siehe auch:
 
 
- 
- 
Konstruktordetails- 
ContentToolpublic ContentTool()C'tor
 
- 
- 
Methodendetails- 
initThis will initialize a ContentTool object that was constructed with the default constructor (ApplicationTool method).- Angegeben von:
- initin Schnittstelle- ApplicationTool
- Parameter:
- data- assumed to be a PipelineData object
 
- 
refreshRefresh method - does nothing- Angegeben von:
- refreshin Schnittstelle- ApplicationTool
 
- 
getURIReturns the Turbine URI of a given Path- Parameter:
- path- The path to translate
- Gibt zurück:
- Turbine translated absolute path
 
- 
getAbsoluteURIReturns the Turbine URI of a given Path. The result is always an absolute path starting with the server scheme (http/https).- Parameter:
- path- The path to translate
- Gibt zurück:
- Turbine translated absolute path
 
- 
getRelativeURIReturns the Turbine URI of a given Path. The result is always relative to the context of the application.- Parameter:
- path- The path to translate
- Gibt zurück:
- Turbine translated absolute path
 
 
-