类 ImportTool
java.lang.Object
org.apache.velocity.tools.generic.SafeConfig
org.apache.velocity.tools.generic.ImportTool
org.apache.velocity.tools.view.ImportTool
- 所有已实现的接口:
Serializable
General-purpose text-importing view tool for templates.
Usage:
Just call $import.read("http://www.foo.com/bleh.jsp?sneh=bar") to insert the contents of the named
resource into the template.
Toolbox configuration:
<tools>
<toolbox scope="request">
<tool class="org.apache.velocity.tools.view.ImportTool"/>
</toolbox>
</tools>
- 从以下版本开始:
- VelocityTools 2.0
- 版本:
- $Revision$ $Date$
- 作者:
- Marino A. Jonsson
- 另请参阅:
-
字段概要
从类继承的字段 org.apache.velocity.tools.generic.ImportTool
importSupport从类继承的字段 org.apache.velocity.tools.generic.SafeConfig
LOCK_CONFIG_KEY, log, LOGGER_NAME_KEY, SAFE_MODE_KEY, USE_CLASS_LOGGER_KEY -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidconfigure(ValueParser values) protected voidinitializeImportSupport(ValueParser config) Returns the supplied URL rendered as a String.从类继承的方法 org.apache.velocity.tools.generic.ImportTool
fetch, read从类继承的方法 org.apache.velocity.tools.generic.SafeConfig
configure, getLog, initLogger, isConfigLocked, isSafeMode, setLockConfig, setSafeMode
-
构造器详细资料
-
ImportTool
public ImportTool()
-
-
方法详细资料
-
initializeImportSupport
- 覆盖:
initializeImportSupport在类中ImportTool
-
configure
- 覆盖:
configure在类中ImportTool
-
read
Returns the supplied URL rendered as a String.- 参数:
obj- the URL to import- 返回:
- the URL as a string
-