|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.summit.util.UriBuilder
org.codehaus.plexus.summit.pull.tools.ContentUriBuilder
public class ContentUriBuilder
Utility class to allow the easy inclusion of images in templates: <img src="$content.getURI("image.jpg")">
| Field Summary |
|---|
| Fields inherited from class org.codehaus.plexus.summit.util.UriBuilder |
|---|
ANCHOR_STATIC_PART_LENGTH, data, HTTP, HTTPS, PATH_INFO, pathInfo, QUERY_DATA, queryData, redirect, res, ROLE |
| Constructor Summary | |
|---|---|
ContentUriBuilder()
Default 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 |
refresh()
Refresh method - does nothing |
void |
setRunData(RunData data)
Initialize this object using the given RunData object |
| Methods inherited from class org.codehaus.plexus.summit.util.UriBuilder |
|---|
add, add, add, addPair, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, getA, getScriptName, getServerName, getServerPort, getServerScheme, hasPathInfo, hasQueryData, init, init, isEncodeUrl, isRelative, remove, removePairByName, removePathInfo, removePathInfo, removeQueryData, removeQueryData, renderPairs, renderPathInfo, renderPathInfo, renderQueryString, renderQueryString, setAction, setEncodeUrl, setRedirect, setRelative, setTarget, toString, toString, toString, writeEncoded, writeFastEncoded |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContentUriBuilder()
| Method Detail |
|---|
public void refresh()
refresh in interface RequestToolpublic void setRunData(RunData data)
setRunData in interface RequestTooldata - 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 | |||||||||