org.apache.turbine.services.pull.tools
Class RelativeTemplateLink
java.lang.Object
  
org.apache.turbine.services.pull.tools.TemplateLink
      
org.apache.turbine.services.pull.tools.RelativeTemplateLink
- All Implemented Interfaces: 
 - ApplicationTool
 
Deprecated. Use TemplateLink with the
 TemplateLink.getRelativeLink() method.
- public class RelativeTemplateLink
- extends TemplateLink
  
This is exactly the same thing as TemplateLink but it returns a
 relative link on toString(). Everything else is identical. This class is
 here for legacy purposes if you used the old org.apache.turbine.util.template.RelativeLink
 class and have lots of templates which you don't want to rewrite.
 
 For new Code please use TemplateLink and get a relative Link with $link.RelativeLink and
 the URI without resetting the query_data and path_info with $link.RelativeURI
 
 This is an application pull tool for the template system. You should not
 use it in a normal application!
- Version:
 
  - $Id: RelativeTemplateLink.java 264148 2005-08-29 14:21:04Z henning $
 
- Author:
 
  - John D. McNally, Henning P. Schmiedehausen
 
 
 
 
| 
Method Summary | 
 java.lang.String | 
toString()
 
          Deprecated. Returns the URI. | 
 
| 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, setPage, setReference, setScreen | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
RelativeTemplateLink
public RelativeTemplateLink()
- Deprecated. 
- Default constructor
 
 The init method must be called before use.
  
toString
public java.lang.String toString()
- Deprecated. 
- Returns the URI. After rendering the URI, it clears the
 pathInfo and QueryString portions of the TemplateURI. Equivalent
 to the getRelativeLink() method of this class.
- Overrides:
 toString in class TemplateLink
 
- Returns:
 - A String with the URI in the form
 /Turbine/template/index.wm/hello/world
 
 
  
Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.