NVelocity.Http.Tool
Class ServletToolboxManager

Field Summary
string ELEMENT_SCOPE
string SESSION_TOOLS_KEY

Constructor Summary
ServletToolboxManager(System.Web.HttpContext httpContext)
         Default constructor

Method Summary
void AddTool(NVelocity.Tool.IToolInfo info)
         Overrides XMLToolboxManager to separate tools by scope. For this to work, we obviously override getToolboxContext as well.
NVelocity.Http.Context.ToolboxContext getToolboxContext(object initData)
         Overrides XMLToolboxManager to handle the separate scopes. Application scope tools were initialized when the toolbox was loaded. Session scope tools are initialized once per session and stored in a map in the session attributes. Request scope tools are initialized on every request.
void log(string s)
         Overrides XMLToolboxManager to log to the servlet context
NVelocity.Tool.IToolInfo readToolInfo(System.Xml.XmlElement e)
         Overrides XMLToolboxManager to read a {@link ServletToolInfo} instead of a {@link org.apache.velocity.tools.view.ViewToolInfo}.

Methods inherited from class NVelocity.Http.Tool.XMLToolboxManager
load, readDataInfo

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Field Detail

ELEMENT_SCOPE

public string ELEMENT_SCOPE


SESSION_TOOLS_KEY

public string SESSION_TOOLS_KEY

Constructor Detail

ServletToolboxManager

public ServletToolboxManager(System.Web.HttpContext httpContext)

Default constructor

Method Detail

AddTool

public void AddTool(NVelocity.Tool.IToolInfo info)

Overrides XMLToolboxManager to separate tools by scope. For this to work, we obviously override getToolboxContext as well.


getToolboxContext

public NVelocity.Http.Context.ToolboxContext getToolboxContext(object initData)

Overrides XMLToolboxManager to handle the separate scopes. Application scope tools were initialized when the toolbox was loaded. Session scope tools are initialized once per session and stored in a map in the session attributes. Request scope tools are initialized on every request.


log

protected internal void log(string s)

Overrides XMLToolboxManager to log to the servlet context


readToolInfo

protected internal NVelocity.Tool.IToolInfo readToolInfo(System.Xml.XmlElement e)

Overrides XMLToolboxManager to read a {@link ServletToolInfo} instead of a {@link org.apache.velocity.tools.view.ViewToolInfo}.