org.apache.turbine.util
Class ContentURI

java.lang.Object
  extended byorg.apache.turbine.util.DynamicURI
      extended byorg.apache.turbine.util.ContentURI
All Implemented Interfaces:
ApplicationTool, URI

Deprecated. Use ContentTool for tool usage and DataURI for code usage instead.

public class ContentURI
extends DynamicURI
implements ApplicationTool

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

Version:
$Id: ContentURI.java 264148 2005-08-29 14:21:04Z henning $
Author:
Cameron Riley, Jason van Zyl, Jon S. Stevens

Field Summary
 
Fields inherited from class org.apache.turbine.util.DynamicURI
data, hasPathInfo, hasQueryData, HTTP, HTTPS, PATH_INFO, pathInfo, QUERY_DATA, queryData, redirect, reference, res, sd
 
Constructor Summary
ContentURI()
          Deprecated. Default constructor
ContentURI(RunData data)
          Deprecated. Constructor
 
Method Summary
 java.lang.String getURI(java.lang.String pathToContent)
          Deprecated. Returns a URI pointing to the given content (where content is a path relative to the webapp root.
 void init(java.lang.Object data)
          Deprecated. Initialize this object using the data given (ApplicationTool method).
 void init(RunData data)
          Deprecated. Initialize this object using the given RunData object
 void refresh()
          Deprecated. Refresh method - does nothing
 
Methods inherited from class org.apache.turbine.util.DynamicURI
add, add, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, assertInitialized, getA, getContextPath, getReference, getScriptName, getServerData, getServerName, getServerPort, getServerScheme, init, remove, removePathInfo, removePathInfo, removeQueryData, removeQueryData, renderPathInfo, renderQueryString, setAction, setActionEvent, setContextPath, setReference, setScreen, setScriptName, setSecure, setSecure, setServerData, setServerName, setServerPort, setServerScheme, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentURI

public ContentURI(RunData data)
Deprecated. 
Constructor

Parameters:
data - a RunData instance

ContentURI

public ContentURI()
Deprecated. 
Default constructor

Method Detail

init

public void init(java.lang.Object data)
Deprecated. 
Initialize this object using the data given (ApplicationTool method).

Specified by:
init in interface ApplicationTool
Parameters:
data - assumed to be a RunData instance

refresh

public void refresh()
Deprecated. 
Refresh method - does nothing

Specified by:
refresh in interface ApplicationTool

init

public void init(RunData data)
Deprecated. 
Initialize this object using the given RunData object

Overrides:
init in class DynamicURI
Parameters:
data - a RunData instance

getURI

public java.lang.String getURI(java.lang.String pathToContent)
Deprecated. 
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 © 2000-2005 Apache Software Foundation. All Rights Reserved.