|
|||||||||||
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.RelativeTemplateLink
A customized version of the RelativeDynamicUriBuilder to be used in Templates. Here's an example of its Velocity/WebMacro use:
$link.setPage("index.wm").addPathInfo("hello","world")
This would return: /myapp/servlet/myapp/target/index.wm/hello/world
Field Summary | |
private java.lang.String |
target
cache of the target name for getPage() |
private static java.lang.String |
TEMPLATE_KEY
the pathinfo key stored in the UriBuilder |
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 | |
RelativeTemplateLink()
Default constructor The init method must be called before use. |
Method Summary | |
java.lang.String |
getPage()
Gets the target variable used by the Template Service. |
java.lang.String |
getURI()
Returns the URI leaving the source intact. |
void |
refresh()
Refresh the application tool. |
RelativeTemplateLink |
setEncodeURLOff()
This will turn off the execution of res.encodeURL() by making res == null. |
RelativeTemplateLink |
setPage(java.lang.String t)
Sets the target variable used by the Template Service. |
void |
setRunData(RunData data)
Initialize the RequestTool with RunData from the request. |
java.lang.String |
toString()
Returns the URI. |
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, writeEncoded, writeFastEncoded |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final java.lang.String TEMPLATE_KEY
private java.lang.String target
Constructor Detail |
public RelativeTemplateLink()
Method Detail |
public RelativeTemplateLink setEncodeURLOff()
public RelativeTemplateLink setPage(java.lang.String t)
t
- A String with the target name.
public java.lang.String getPage()
public java.lang.String toString()
toString
in class UriBuilder
public java.lang.String getURI()
UriBuilder.toString
method of the superclass
(avoiding the local toString implementation).
public void setRunData(RunData data)
RequestTool
setRunData
in interface RequestTool
data
- initialization datapublic void refresh()
RequestTool
refresh
in interface RequestTool
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |