public class ContentTool extends Object implements ApplicationTool
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!
| Modifier and Type | Field and Description |
|---|---|
static boolean |
CONTENT_TOOL_ENCODING_DEFAULT
Default Value for CONTENT_TOOL_ENCODING_KEY
|
static String |
CONTENT_TOOL_ENCODING_KEY
Should this tool add Container Encoding to the URIs returned?
|
static String |
CONTENT_TOOL_PREFIX
Prefix for Parameters for this tool
|
static boolean |
CONTENT_TOOL_RELATIVE_DEFAULT
Default Value for CONTENT_TOOL_RELATIVE_KEY
|
static String |
CONTENT_TOOL_RELATIVE_KEY
Should this tool return relative URIs or absolute?
|
| Constructor and Description |
|---|
ContentTool()
C'tor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAbsoluteURI(String path)
Returns the Turbine URI of a given Path.
|
String |
getRelativeURI(String path)
Returns the Turbine URI of a given Path.
|
String |
getURI(String path)
Returns the Turbine URI of a given Path
|
void |
init(Object data)
This will initialize a ContentTool object that was
constructed with the default constructor (ApplicationTool
method).
|
void |
refresh()
Refresh method - does nothing
|
public static final String CONTENT_TOOL_PREFIX
public static final String CONTENT_TOOL_ENCODING_KEY
public static final boolean CONTENT_TOOL_ENCODING_DEFAULT
public static final String CONTENT_TOOL_RELATIVE_KEY
public static final boolean CONTENT_TOOL_RELATIVE_DEFAULT
public ContentTool()
public void init(Object data)
init in interface ApplicationTooldata - assumed to be a PipelineData objectpublic void refresh()
refresh in interface ApplicationToolpublic String getURI(String path)
path - The path to translatepublic String getAbsoluteURI(String path)
path - The path to translatepublic String getRelativeURI(String path)
path - The path to translateCopyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.