类 ServletToolInfo
java.lang.Object
org.apache.velocity.tools.view.ViewToolInfo
org.apache.velocity.tools.view.servlet.ServletToolInfo
- 所有已实现的接口:
ToolInfo
已过时。
ToolInfo implementation that holds scope information for tools used in a servlet environment. The ServletToolboxManager uses this to allow tool definitions to specify the scope/lifecycle of individual view tools.
Example of toolbox.xml definitions for servlet tools:
<tool> <key>link</key> <scope>request</scope> <class>org.apache.velocity.tools.struts.StrutsLinkTool</class> </tool> <tool> <key>math</key> <scope>application</scope> <class>org.apache.velocity.tools.generic.MathTool</class> </tool> <tool> <key>user</key> <scope>session</scope> <class>com.mycompany.tools.MyUserTool</class> </tool>
- 版本:
- $Id: ServletToolInfo.java 564438 2007-08-10 00:15:18Z nbubna $
- 作者:
- Nathan Bubna
-
字段概要
字段从类继承的字段 org.apache.velocity.tools.view.ViewToolInfo
LOG
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
allowsRequestPath
(String requestedPath) 已过时。已过时。getScope()
已过时。void
setRequestPath
(String path) 已过时。void
已过时。从类继承的方法 org.apache.velocity.tools.view.ViewToolInfo
getApplicationClass, getClassname, getInstance, getKey, getParameters, setClassname, setKey, setParameter, setParameters
-
字段详细资料
-
scope
已过时。 -
exactPath
private boolean exactPath已过时。 -
path
已过时。
-
-
构造器详细资料
-
ServletToolInfo
public ServletToolInfo()已过时。
-
-
方法详细资料
-
setScope
已过时。 -
getScope
已过时。- 返回:
- the scope of the tool
-
setRequestPath
已过时。- 参数:
path
- the full or partial request path restriction of the tool- 从以下版本开始:
- VelocityTools 1.3
-
getRequestPath
已过时。- 返回:
- request path restriction for this tool
- 从以下版本开始:
- VelocityTools 1.3
-
allowsRequestPath
已过时。- 参数:
requestedPath
- the path of the current servlet request- 返回:
true
if the path of the specified request path matches the request path of this tool. If there is no request path restriction for this tool, it will always returntrue
.- 从以下版本开始:
- VelocityTools 1.3
-
ToolInfo