org.apache.turbine.services.pull.tools
Class TemplateLinkWithSlash

java.lang.Object
  extended byorg.apache.turbine.services.pull.tools.TemplateLink
      extended byorg.apache.turbine.services.pull.tools.TemplateLinkWithSlash
All Implemented Interfaces:
ApplicationTool

Deprecated. Use TemplateLink instead and fix up your template references.

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.

This is an application pull tool for the template system. You should not use it in a normal application!

Version:
$Id: TemplateLinkWithSlash.java 264148 2005-08-29 14:21:04Z henning $
Author:
John D. McNally

Field Summary
 
Fields inherited from class org.apache.turbine.services.pull.tools.TemplateLink
TEMPLATE_LINK_PREFIX, TEMPLATE_LINK_RELATIVE_DEFAULT, TEMPLATE_LINK_RELATIVE_KEY
 
Constructor Summary
TemplateLinkWithSlash()
          Deprecated. Default constructor
 
Method Summary
 TemplateLink setPage(java.lang.String template)
          Deprecated. Sets the template variable used by the Template Service.
 
Methods inherited from class org.apache.turbine.services.pull.tools.TemplateLink
addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, getAbsoluteLink, getAbsoluteURI, getLink, getPage, getReference, getRelativeLink, getRelativeURI, getURI, init, refresh, removePathInfo, removePathInfo, removeQueryData, removeQueryData, setAction, setActionEvent, setEncodeURLOff, setEvent, setReference, setScreen, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateLinkWithSlash

public TemplateLinkWithSlash()
Deprecated. 
Default constructor

The init method must be called before use.

Method Detail

setPage

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

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


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.