|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packageorg.springframework.web.servlet.handler
as colored differences. Deletions are shownlike 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.
Abstract base class for org.springframework.web.servlet.HandlerMapping implementations. Supports ordering, a default handler, handler interceptors,Class AbstractHandlerMapping, void detectMappedInterceptors(List<MappedInterceptor>)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
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.Class AbstractHandlerMapping, void initInterceptors()@param mappedInterceptors an empty list to add MappedInterceptor types to
Initialize the specified interceptors, checking for MappedInterceptors andClass AbstractHandlerMapping, void setInterceptors(Object[])adaptingadaptingHandlerInterceptors where necessary. @see #setInterceptors @see #adaptInterceptor
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, ornull
if none @see #adaptInterceptor @see org.springframework.web.servlet.HandlerInterceptor @see org.springframework.web.context.request.WebRequestInterceptor
Abstract base classClass AbstractHandlerMethodExceptionResolver, boolean shouldApplyTo(HttpServletRequest, Object)forfor HandlerExceptionResolverimplementations that support handling exceptions from handlers of type HandlerMethods rather than handlers.@author Rossen Stoyanchev @since 3.1
Checks if the handler is a HandlerMethodinstanceandperforms thethencheck against the bean instance itdelegates to the base class implementation ofcontains.If theshouldApplyTo(HttpServletRequest,providedObject)handler is not an instancepassing the bean of theof{@code HandlerMethod,}.Otherwise returns {@code false}is returned instead.
Abstract base class for HandlerMapping implementations that define a mapping between a request and a HandlerMethod.Class AbstractHandlerMethodMapping, T getMappingForMethod(Method, Class<?>)For each registered handler method, a unique mapping is maintained
withwith subclasses defining the details of the mapping type {@code}. @paramThe mapping for a HandlerMethod containing the conditions needed to match the handler method to incoming request. @author Arjen Poutsma @author Rossen Stoyanchev @since 3.1
Provide the mapping for a handler method. A method for whichClass AbstractHandlerMethodMapping, T getMatchingMapping(T, HttpServletRequest)nonomapping can be provided is not a handler method.@param method the method to provide a mapping for @param handlerType the handler type, possibly a sub-type of the method's declaring class @return the mapping, or {@code null} if the method is not mapped
Check if a mapping matches the current request and return a (Class AbstractHandlerMethodMapping, void handleMatch(T, String, HttpServletRequest)potentiallypotentiallynew) mapping with conditions relevant to the current request.@param mapping the mapping to get a match for @param request the current HTTP servlet request @return the match, or {@code null} if the mapping doesn't match
Invoked when a matching mapping is found. @param mapping the matchingClass AbstractHandlerMethodMapping, HandlerMethod lookupHandlerMethod(String, HttpServletRequest)mappingmapping @param lookupPath mapping lookup path within the current servlet mapping @param request the current request
Look up the best-matching handler method for the current request. If multiple matches are found, the best match is selected.Class AbstractHandlerMethodMapping, void registerHandlerMethod(Object, Method, T)@param lookupPath mapping lookup path within the current servlet mapping @param request the current request @return the best-matching handler method, or {@code null} if no match@see #handleMatch(Object, String, HttpServletRequest) @see #handleNoMatch(Set, String, HttpServletRequest)
Register a handler method and its unique mapping.@param handler the bean name of the handler or the handler instance @param method the method to register @param mapping the mapping conditions associated with the handler method @throws IllegalStateException if another method was alreadyregisteredregistered under the same mapping
Create a new DispatcherServletWebRequest instance for the given request and response. @param request current HTTP request @paramrequestresponse current HTTP response
Create a new MappedInterceptor instance. @paramClass MappedInterceptor, constructor MappedInterceptor(String[], WebRequestInterceptor)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
Create a new MappedInterceptor instance. @paramClass MappedInterceptor, boolean matches(String, PathMatcher)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
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
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.Class SimpleMappingExceptionResolver, void addStatusCode(String, int)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
An alternative to .setStatusCodes(Properties) for useClass SimpleMappingExceptionResolver, String determineViewName(Exception, HttpServletRequest)withwithJava-based configuration.
Determine the view name for the given exception, first checking against the "excludedExecptions", then searchingthethe "exceptionMappings",and finally usingthethe "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, ornull
if excluded or none found