程序包 cn.taketoday.web
package cn.taketoday.web
-
类说明Context to assist with binding request data onto Objects and provide access to a shared
Modelwith controller-specific attributes.RequestContext decorator that makes all beans in a given WebApplicationContext accessible as request attributes, through lazy checking once an attribute gets accessed.Decorating RequestContextRepresentation of a complete RFC 7807 error response including status, headers, and an RFC 7807 formattedProblemDetailbody.RuntimeExceptionthat implementsErrorResponseto expose an HTTP status, response headers, and a body formatted as an RFC 7807ProblemDetail.MVC framework SPI, allowing parameterization of the core MVC workflow.ForHandlerAdapternot foundNote: This framework allows hander useHandlerAdapterCapableto specific a HandlerAdapter at startup timeHandle Exception from handlerHandler process around Handler.Interface to be implemented by objects that define a mapping between requests and handler objects.Abstract base for exceptions related to media types.Exception thrown when the request handler cannot generate a response that is acceptable by the client.Exception thrown when a client POSTs, PUTs, or PATCHes content of a type not supported by request handler.Plain handler interface for components that process HTTP requestsException thrown when a request handler does not support a specific request method.For Framework Configuration errorsHandlerInterceptor execution chainExtension ofLocaleResolver, adding support for a rich locale context (potentially including locale and time zone information).Interface for web-based locale resolution strategies that allows for both locale resolution via the request and locale modification via request and response.Exception for errors that fit response status 405 (method not allowed).Exception for errors that fit response status 406 (not acceptable).Context holder for request-specific state.Provides a convenient implementation of the RequestContext that can be subclassed by developers wishing to adapt the request to web.Holder class to expose the web request in the form of a thread-boundRequestContextobject.Parameter extraction methods, for an approach distinct from data binding, in which parameters of specific types are required.Factory that exposes the current request-context object on demand.Factory that exposes the current web-session object on demand.Strategy interface for translating an incomingRequestContextinto a logical view name when no view name is explicitly supplied.Subclass ofErrorResponseExceptionthat accepts a "reason" and maps it to the "detail" property ofProblemDetail.handler return-value HandlerDecorator PatternA common delegate for detecting Servlet's presence AND its featuresInterface to indicateRequestContextrunning in servletException for errors that fit response status 415 (unsupported media type).Convenient superclass for any kind of web content generator