Package org.apache.velocity.tools.view
Contains tools and supporting infrastructure for using
those tools in a servlet environment as well as general
use classes to support use of Velocity as (or in) the
view layer of web applications.
Package Specification
Related Documentation
-
Interface Summary Interface Description JeeConfig Because sometimes you don't care about the difference between a servlet and a filter.ToolboxManager Deprecated. ToolInfo Deprecated. UseToolInfoViewContext This interface provides view tools in a servlet environment access to relevant context information, like servlet request, servlet context and the velocity context. -
Class Summary Class Description AbstractSearchTool Abstract view tool for doing "searching" and robust pagination of search results.AbstractSearchTool.StoredResults Simple utility class to hold a criterion and its result list.BrowserTool browser-sniffing tool (session or request scope requested, session scope advised).CookieTool View tool for convenient cookie access and creation.CookieTool.SugarCookie ExtendsCookieto add some fluid API sugar and a toString() method that renders the Cookie's value instead of the usual Object.toString() shenanigans.DataInfo Deprecated. UseDataImportSupport Provides methods to import arbitrary local or remote resources as strings.ImportSupport.ImportResponseWrapper Wraps responses to allow us to retrieve results as Strings.ImportSupport.SafeClosingHttpURLConnectionReader ImportTool General-purpose text-importing view tool for templates.IncludeTool Allows for transparent content negotiation in a manner mimicking Apache httpd's MultiViews.JeeContextConfig ImplementsJeeConfigwith only aServletContext.JeeFilterConfig ImplementsJeeConfigwith aFilterConfig.JeeServletConfig ImplementsJeeConfigwith aServletConfig.LinkTool The LinkTool provides many methods to work with URIs and can help you: construct full URIs (absolute or relative) encode session ID into a URI retrieve server, port and path info for the current request reconstruct or alter the current request URI and more..PagerTool View tool for doing request-based pagination of items in an a list.ParameterTool Utility class for easy parsing ofServletRequestparameters.ServletLogChute Deprecated. This class has been moved to Velocity Engine 1.6+ and only remains here temporarily for users of previous Velocity Engine versions.ServletUtils A set of utility methods for supporting and using VelocityTools in the servlet environment.ToolboxRuleSet Deprecated. ToolboxRuleSet.ParameterRule UiDependencyTool NOTE: This tool is considered "beta" quality due to lack of public testing and is not automatically provided via the default tools.xml file.UiDependencyTool.FileRule NOTE: This class may change or disappear w/o warning; don't depend on it unless you're willing to update your code whenever this changes.UiDependencyTool.Group NOTE: This class may change or disappear w/o warning; don't depend on it unless you're willing to update your code whenever this changes.UiDependencyTool.GroupRule NOTE: This class may change or disappear w/o warning; don't depend on it unless you're willing to update your code whenever this changes.UiDependencyTool.NeedsRule NOTE: This class may change or disappear w/o warning; don't depend on it unless you're willing to update your code whenever this changes.UiDependencyTool.TypeRule NOTE: This class may change or disappear w/o warning; don't depend on it unless you're willing to update your code whenever this changes.VelocityLayoutServlet Extension of the VelocityViewServlet to perform "two-pass" layout rendering and allow for a customized error screen.VelocityView The class provides the following features:VelocityViewFilter A filter to ensure VelocityToolsToolboxes are available in the request/session/application scopes.VelocityViewServlet A servlet to process Velocity templates.ViewContextTool Extension ofContextToolthat includes keys and values from theHttpServletRequest,HttpSessionandServletContext.ViewToolContext ToolContextimplementation specific to the servlet environment.ViewToolInfo Deprecated. UseToolInfoViewToolManager Manages tools for web applications.WebappResourceLoader Resource loader that uses the ServletContext of a webapp to load Velocity templates.WebappUberspector This custom uberspector allows getAttribute() and setAttribute() as standard getters and setters for the "request","session" and "application" keys.XMLToolboxManager Deprecated.