程序包 cn.taketoday.web.handler
@NonNullApi
package cn.taketoday.web.handler
Web Handler
- 从以下版本开始:
- 4.0 2022/5/23 10:40
- 作者:
- Harry Yang
-
类说明Abstract base class for
HandlerExceptionHandlerimplementations that support handling exceptions from handlers of typeActionMappingAnnotationHandler.Abstract implementation of theHandlerMappinginterface, detecting URL mappings for handler beans through introspection of all defined beans in the application context.Abstract base class forHandlerExceptionHandlerimplementations.Abstract base class forHandlerMappingimplementations.Abstract base class for URL-mappedHandlerMappingimplementations.Implementation of theHandlerMappinginterface that maps from URLs to beans with names that start with a slash ("/"), similar to how Struts maps URLs to action names.Central dispatcher for HTTP request handlers/controllersHandlerAdapter can be injected at runtimecomposite HandlerAdapterHandler execution chain, consisting of handler object and any handler interceptors.for holdingHandlerInterceptorsA strategy for assigning a name to a handler method's mapping.By default when the DispatcherHandler can't find a handler for a request it sends a 404 response.Composite HandlerMappingInfrastructure HandlerWraps aHandlerInterceptorand uses URL patterns to determine whether it applies to a given request.Contains both the parsedPathPatternand the raw String pattern, and uses the former when the cached path isPathContaineror the latter otherwise.Process Handler not foundPattern handler match in runtimeA convenient base class for@ControllerAdviceclasses that wish to provide centralized exception handling across all@RequestMappingmethods through@ExceptionHandlermethods.AHandlerExceptionHandlerthat uses the@ResponseStatusannotation to map exceptions to HTTP status codes.return-value handler managerForReturnValueHandlernot foundselectReturnValueHandlerhandler in listwrite 'classpath:error/xxx.png' for RenderedImageThe default implementation of theHandlerExceptionHandlerinterface, resolving standard Framework MVC exceptions and translating them to corresponding HTTP status codes.HandlerExceptionHandlerimplementation that allows for mapping exception class names to view names, either for a set of given handlers or for all handlers in the DispatcherHandler.Implementation of theHandlerMappinginterface that maps from URLs to request handler beans.A controller method return value type for asynchronous request processing where the application can write directly to the responseOutputStreamwithout holding up the Servlet container thread.