Generated by
JDiff

org.springframework.web.servlet.handler Documentation Differences

This file contains all the changes in documentation in the package org.springframework.web.servlet.handler as colored differences. Deletions are shown like this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.

Class AbstractHandlerMapping

Abstract base class for org.springframework.web.servlet.HandlerMapping implementations. Supports ordering, a default handler, handler interceptors, including handler interceptors mapped by path patterns.

Note: This base class does not support exposure of the .PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE. Support for this attribute is up to concrete subclasses, typically based on request URL mappings. @author Juergen Hoeller @author Rossen Stoyanchev @since 07.04.2003 @see #getHandlerInternal @see #setDefaultHandler @see #setAlwaysUseFullPath @see #setUrlDecode @see org.springframework.util.AntPathMatcher @see #setInterceptors @see org.springframework.web.servlet.HandlerInterceptor

Class AbstractHandlerMapping, void detectMappedInterceptors(List<MappedInterceptor>)

Detects beans of type MappedInterceptor and adds them to the list of mapped interceptors. This is done in addition to any MappedInterceptors that may have been provided via .setInterceptors(Object[]). Subclasses can override this method to change that. @param mappedInterceptors an empty list to add MappedInterceptor types to
Class AbstractHandlerMapping, void initInterceptors()

Initialize the specified interceptors, checking for MappedInterceptors and adaptingadapting HandlerInterceptors where necessary. @see #setInterceptors @see #adaptInterceptor
Class AbstractHandlerMapping, void setInterceptors(Object[])

Set the interceptors to apply for all handlers mapped by this handler mapping.

Supported interceptor types are HandlerInterceptor, WebRequestInterceptor, and MappedInterceptor. Mapped interceptors apply only to request URLs that match its path patterns. Mapped interceptor beans are also detected by type during initialization. @param interceptors array of handler interceptors, or null if none @see #adaptInterceptor @see org.springframework.web.servlet.HandlerInterceptor @see org.springframework.web.context.request.WebRequestInterceptor


Class AbstractHandlerMethodExceptionResolver

Abstract base class for HandlerExceptionResolver implementations that support handling exceptions from handlers of type HandlerMethod. @author Rossen Stoyanchev @since 3.1
Class AbstractHandlerMethodExceptionResolver, boolean shouldApplyTo(HttpServletRequest, Object)

Checks if the handler is a HandlerMethod instance and performs thethen check against the bean instance itdelegates to the base class implementation of contains. If theshouldApplyTo(HttpServletRequest, providedObject) handler is not an instancepassing the bean of the of{@code HandlerMethod,}. Otherwise returns {@code false} is returned instead.

Class DispatcherServletWebRequest, constructor DispatcherServletWebRequest(HttpServletRequest, HttpServletResponse)

Create a new DispatcherServletWebRequest instance for the given request and response. @param request current HTTP request @param requestresponse current HTTP response

Class MappedInterceptor, constructor MappedInterceptor(String[], HandlerInterceptor)

Create a new MappedInterceptor instance. @param pathPatternsincludePatterns the path patterns to map with a {@code null} value matching to all paths @param interceptor the HandlerInterceptor instance to map to the given patterns
Class MappedInterceptor, constructor MappedInterceptor(String[], WebRequestInterceptor)

Create a new MappedInterceptor instance. @param pathPatternsincludePatterns the path patterns to map with a {@code null} value matching to all paths @param interceptor the WebRequestInterceptor instance to map to the given patterns
Class MappedInterceptor, boolean matches(String, PathMatcher)

Returns {@code true} if the interceptor applies to the given request path. @param lookupPath the current request path @param pathMatcher a path matcher for path pattern matching

Class SimpleMappingExceptionResolver

org.springframework.web.servlet.HandlerExceptionResolver implementation that allows for mapping exception class names to view names, either for a set of given handlers or for all handlers in the DispatcherServlet.

Error views are analogous to error page JSPs, but can be used with any kind of exception including any checked one, with fine-granular mappings for specific handlers. @author Juergen Hoeller @author Arjen Poutsma @author Rossen Stoyanchev @since 22.11.2003 @see org.springframework.web.servlet.DispatcherServlet

Class SimpleMappingExceptionResolver, void addStatusCode(String, int)

An alternative to .setStatusCodes(Properties) for use withwith Java-based configuration.
Class SimpleMappingExceptionResolver, String determineViewName(Exception, HttpServletRequest)

Determine the view name for the given exception, first checking against the "excludedExecptions", then searching thethe "exceptionMappings", and finally using thethe "defaultErrorView" as a fallback. @param ex the exception that got thrown during handler execution @param request current HTTP request (useful for obtaining metadata) @return the resolved view name, or null if excluded or none found