NVelocity.Http.Context Namespace Summary

Interface Summary
IViewContext Objects implementing this interface are passed to view tools upon initialization by the {@link org.apache.velocity.tools.view.servlet.ServletToolboxManager}.The interface provides view tools in a servlet environment access to relevant context information, like servlet request, servlet context and the velocity context.

Class Summary
ChainedContext Velocity context implementation specific to the Servlet environment.It provides the following special features:puts the request, response, session, and servlet context objects into the Velocity context for direct access, and keeps them read-onlysupports a read-only toolbox of view toolsauto-searches servlet request attributes, session attributes and servlet context attribues for objectsThe {@link #internalGet(String key)} method implements the following search order for objects:servlet request, servlet response, servlet session, servlet contexttoolboxlocal hashtable of objects (traditional use)servlet request attribues, servlet session attribute, servlet context attributesThe purpose of this class is to make it easy for web designer to work with Java servlet based web applications. They do not need to be concerned with the concepts of request, session or application attributes and the live time of objects in these scopes.Note that the put() method always puts objects into the local hashtable.
ToolboxContext Read-only context used to carry a set of view tools.Writes get dropped.