类 ImportTool
java.lang.Object
org.apache.velocity.tools.view.ImportSupport
org.apache.velocity.tools.view.ImportTool
- 直接已知子类:
ImportTool
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: 663722 $ $Date: 2008-06-05 12:59:51 -0700 (Thu, 05 Jun 2008) $
- 作者:
- Marino A. Jonsson
-
嵌套类概要
从类继承的嵌套类/接口 org.apache.velocity.tools.view.ImportSupport
ImportSupport.ImportResponseWrapper, ImportSupport.SafeClosingHttpURLConnectionReader
-
字段概要
从类继承的字段 org.apache.velocity.tools.view.ImportSupport
application, DEFAULT_ENCODING, LOG, request, response, VALID_SCHEME_CHARS
-
构造器概要
构造器 -
方法概要
从类继承的方法 org.apache.velocity.tools.view.ImportSupport
acquireReader, acquireString, getContentTypeAttribute, isAbsoluteUrl, setLog, setRequest, setResponse, setServletContext, stripSession
-
构造器详细资料
-
ImportTool
public ImportTool()
-
-
方法详细资料
-
read
Returns the supplied URL rendered as a String.- 参数:
obj
- the URL to import- 返回:
- the URL as a string
-