程序包 org.apache.velocity.tools.view
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
-
类说明Abstract view tool for doing "searching" and robust pagination of search results.Simple utility class to hold a criterion and its result list.Helper tool to display a navigation breadcrumb to the end user.Class representing a navigation elementBrowser sniffing tool (session or request scope requested, session scope advised).已过时。View tool for convenient cookie access and creation.Extends
Cookieto add some fluid API sugar and a toString() method that renders the Cookie's value instead of the usual Object.toString() shenanigans.General-purpose text-importing view tool for templates.Allows for transparent content negotiation in a manner mimicking Apache httpd's MultiViews.Because sometimes you don't care about the difference between a servlet and a filter.ImplementsJeeConfigwith only aServletContext.ImplementsJeeConfigwith aFilterConfig.ImplementsJeeConfigwith aServletConfig.View version ofJsonTool.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..View tool for doing request-based pagination of items in an a list.Utility class for easy parsing ofServletRequestparameters.A set of utility methods for supporting and using VelocityTools in the servlet environment.NOTE: This tool is considered "beta" quality due to lack of public testing and is not automatically provided via the default tools.xml file.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.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.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.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.Extension of the VelocityViewServlet to perform "two-pass" layout rendering and allow for a customized error screen.The class provides the following features:A filter to ensure VelocityToolsToolboxes are available in the request/session/application scopes.A servlet to process Velocity templates.This interface provides view tools in a servlet environment access to relevant context information, like servlet request, servlet context and the velocity context.Extension ofContextToolthat includes keys and values from theHttpServletRequest,HttpSessionandServletContext.Provides methods to import arbitrary local or remote resources as strings.Wraps responses to allow us to retrieve results as Strings.ToolContextimplementation specific to the servlet environment.Manages tools for web applications.Resource loader that uses the ServletContext of a webapp to load Velocity templates.This custom uberspector allows getAttribute() and setAttribute() as standard getters and setters for the "request","session" and "application" keys.View version ofXmlTool.