org.codehaus.plexus.summit.pull.tools
Class ContentUriBuilder

java.lang.Object
  extended byorg.codehaus.plexus.summit.util.UriBuilder
      extended byorg.codehaus.plexus.summit.pull.tools.ContentUriBuilder
All Implemented Interfaces:
RequestTool

public class ContentUriBuilder
extends UriBuilder
implements RequestTool

Utility class to allow the easy inclusion of images in templates: <img src="$content.getURI("image.jpg")">

Version:
$Id: ContentUriBuilder.java 2092 2005-06-06 16:31:27Z jvanzyl $
Author:
Cameron Riley, Jason van Zyl, Jon S. Stevens

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

ContentUriBuilder

public ContentUriBuilder()
Default constructor

Method Detail

refresh

public void refresh()
Refresh method - does nothing

Specified by:
refresh in interface RequestTool

setRunData

public void setRunData(RunData data)
Initialize this object using the given RunData object

Specified by:
setRunData in interface RequestTool
Parameters:
data - a RunData instance

getURI

public 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.

Parameters:
pathToContent - a path relative to the webapp root


Copyright © 2001-2007 Codehaus. All Rights Reserved.