|
||||||||||
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.ContentURI
Utility class to allow the easy inclusion of images in templates: <img src="$content.getURI("image.jpg")">
Field Summary | |
private java.lang.String |
contextPath
stores the context path for servlet 2.1+ compliant containers |
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 | |
ContentURI()
Default constructor |
|
ContentURI(RunData data)
Constructor |
Method Summary | |
java.lang.String |
getURI(java.lang.String pathToContent)
Returns a URI pointing to the given content (where content is a path relative to the webapp root. |
void |
init(java.lang.Object data)
Initialize this object using the data given (ApplicationTool method). |
void |
init(RunData data)
Initialize this object using the given RunData object |
void |
refresh()
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, getA, getScriptName, getServerData, getServerName, getServerPort, getServerScheme, init, init, remove, removePathInfo, removePathInfo, removeQueryData, removeQueryData, renderPathInfo, renderQueryString, setAction, setScreen, setScriptName, setSecure, setSecure, setServerData, setServerName, setServerPort, setServerScheme, toString, toString |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.lang.String contextPath
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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |