|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.util.DynamicURI
org.apache.turbine.util.template.TemplateLink
TemplateLink
for tool usage
and TemplateURI
for code usage instead.
A customized version of the DynamicURI to be used in Templates. This is automatically inserted into the template context by the appropriate templating service so page authors can create links in templates. Here's an example of its Velocity/WebMacro use:
$link.setPage("index.wm").addPathInfo("hello","world")
This would return: http://foo.com/Turbine/template/index.wm/hello/world
Field Summary |
Fields inherited from class org.apache.turbine.util.DynamicURI |
data, hasPathInfo, hasQueryData, HTTP, HTTPS, PATH_INFO, pathInfo, QUERY_DATA, queryData, redirect, reference, res, sd |
Constructor Summary | |
TemplateLink()
Deprecated. Default constructor. |
|
TemplateLink(RunData data)
Deprecated. Constructor. |
|
TemplateLink(ServerData data)
Deprecated. Constructor. |
Method Summary | |
java.lang.String |
getPage()
Deprecated. Gets the template variable used by the Template Service. |
java.lang.String |
getURI()
Deprecated. Returns the URI leaving the source intact. |
void |
init(java.lang.Object data)
Deprecated. This will initialize a TemplateLink object that was constructed with the default constructor (ApplicationTool method). |
void |
refresh()
Deprecated. Refresh method - does nothing |
TemplateLink |
setEncodeURLOff()
Deprecated. This will turn off the execution of res.encodeURL() by making res == null. |
TemplateLink |
setPage(java.lang.String template)
Deprecated. Sets the template variable used by the Template Service. |
java.lang.String |
toString()
Deprecated. Returns the URI. |
Methods inherited from class org.apache.turbine.util.DynamicURI |
add, add, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, assertInitialized, getA, getContextPath, getReference, getScriptName, getServerData, getServerName, getServerPort, getServerScheme, init, init, remove, removePathInfo, removePathInfo, removeQueryData, removeQueryData, renderPathInfo, renderQueryString, setAction, setActionEvent, setContextPath, setReference, setScreen, setScriptName, setSecure, setSecure, setServerData, setServerName, setServerPort, setServerScheme, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TemplateLink()
The init method must be called before use.
public TemplateLink(RunData data)
data
- a Turbine RunData object.public TemplateLink(ServerData data)
data
- a Turbine ServerData object.Method Detail |
public void init(java.lang.Object data)
init
in interface ApplicationTool
data
- assumed to be a RunData objectpublic void refresh()
refresh
in interface ApplicationTool
public TemplateLink setEncodeURLOff()
public TemplateLink setPage(java.lang.String template)
template
- A String with the template name.
public java.lang.String getPage()
public java.lang.String toString()
toString
in class DynamicURI
public java.lang.String getURI()
DynamicURI.toString
method of the superclass
(avoiding the local toString implementation).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |