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

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

public class TemplateLinkWithSlash
extends TemplateLink

This class allows one to specify paths in the setPage method using '/' slash as opposed to the ',' used in TemplateLink. It is less efficient as the '/' are converted to ',' to avoid problems parsing the pathinfo after conversion in a web server.

It is recommended that projects standardize on using the ',' separator and use TemplateLink. But this class is available for those who do not mind the inefficiency.

Version:
$Id: TemplateLinkWithSlash.java 2092 2005-06-06 16:31:27Z jvanzyl $
Author:
John D. McNally

Field Summary
 
Fields inherited from class org.codehaus.plexus.summit.pull.tools.TemplateLink
 
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
TemplateLinkWithSlash()
          Default constructor

The init method must be called before use.

 
Method Summary
 TemplateLink setPage(java.lang.String t)
          Sets the template variable used by the Template Service.
 
Methods inherited from class org.codehaus.plexus.summit.pull.tools.TemplateLink
getPage, getURI, refresh, setAbsolute, setEncodeURLOff, setRunData, toString
 
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
 

Constructor Detail

TemplateLinkWithSlash

public TemplateLinkWithSlash()
Default constructor

The init method must be called before use.

Method Detail

setPage

public TemplateLink setPage(java.lang.String t)
Sets the template variable used by the Template Service. This method allows slashes '/' as the path separator.

Overrides:
setPage in class TemplateLink
Parameters:
t - A String with the template name.
Returns:
A TemplateLink.