|
|||||||||||
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.ContentURI
ContentTool
for tool usage
and DataURI
for code usage instead.
Utility class to allow the easy inclusion of images in templates: <img src="$content.getURI("image.jpg")">
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 | |
ContentURI()
Deprecated. Default constructor |
|
ContentURI(RunData data)
Deprecated. Constructor |
Method Summary | |
java.lang.String |
getURI(java.lang.String pathToContent)
Deprecated. Returns a URI pointing to the given content (where content is a path relative to the webapp root. |
void |
init(java.lang.Object data)
Deprecated. Initialize this object using the data given (ApplicationTool method). |
void |
init(RunData data)
Deprecated. Initialize this object using the given RunData object |
void |
refresh()
Deprecated. Refresh method - does nothing |
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, remove, removePathInfo, removePathInfo, removeQueryData, removeQueryData, renderPathInfo, renderQueryString, setAction, setActionEvent, setContextPath, setReference, setScreen, setScriptName, setSecure, setSecure, setServerData, setServerName, setServerPort, setServerScheme, toString, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ContentURI(RunData data)
data
- a RunData instancepublic ContentURI()
Method Detail |
public void init(java.lang.Object data)
init
in interface ApplicationTool
data
- assumed to be a RunData instancepublic void refresh()
refresh
in interface ApplicationTool
public void init(RunData data)
init
in class DynamicURI
data
- a RunData instancepublic java.lang.String getURI(java.lang.String pathToContent)
pathToContent
- a path relative to the webapp root
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |