|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.turbine.util.DynamicURI | +--org.apache.turbine.util.template.TemplateLink | +--org.apache.turbine.util.template.TemplateLinkWithSlash
This class allows one to specify paths in the setPage method using '/' slash as opposed to the ',' used in TemplateLink. It is less efficient as the '/' are converted to ',' to avoid problems parsing the pathinfo after conversion in a web server. It is recommended that projects standardize on using the ',' separator and use TemplateLink. But this class is available for those who do not mind the inefficiency.
Fields inherited from class org.apache.turbine.util.template.TemplateLink |
template, TEMPLATE_KEY |
Fields inherited from class org.apache.turbine.util.DynamicURI |
data, hasPathInfo, hasQueryData, HTTP, HTTPS, PATH_INFO, pathInfo, QUERY_DATA, queryData, redirect, res, scriptName, sd, serverName, serverPort, serverScheme |
Constructor Summary | |
TemplateLinkWithSlash()
Default constructor |
|
TemplateLinkWithSlash(RunData data)
Constructor. |
Method Summary | |
TemplateLink |
setPage(java.lang.String t)
Sets the template variable used by the Template Service. |
Methods inherited from class org.apache.turbine.util.template.TemplateLink |
getPage, getURI, init, refresh, setEncodeURLOff, toString |
Methods inherited from class org.apache.turbine.util.DynamicURI |
add, add, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, getA, getScriptName, getServerData, getServerName, getServerPort, getServerScheme, init, init, init, remove, removePathInfo, removePathInfo, removeQueryData, removeQueryData, renderPathInfo, renderQueryString, setAction, setScreen, setScriptName, setSecure, setSecure, setServerData, setServerName, setServerPort, setServerScheme, toString |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public TemplateLinkWithSlash()
The init method must be called before use.
public TemplateLinkWithSlash(RunData data)
data
- a Turbine RunData object.Method Detail |
public TemplateLink setPage(java.lang.String t)
setPage
in class TemplateLink
t
- A String with the template name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |