程序包 org.springframework.web.servlet.function
Provides the types that make up Spring's functional web framework for Servlet environments.
接口概要 接口 说明 EntityResponse<T> Entity-specific subtype ofServerResponse
that exposes entity data.EntityResponse.Builder<T> Defines a builder forEntityResponse
.HandlerFilterFunction<T extends ServerResponse,R extends ServerResponse> Represents a function that filters a handler function.HandlerFunction<T extends ServerResponse> Represents a function that handles a request.RenderingResponse Rendering-specific subtype ofServerResponse
that exposes model and template data.RenderingResponse.Builder Defines a builder forRenderingResponse
.RequestPredicate Represents a function that evaluates on a givenServerRequest
.RequestPredicates.Visitor Receives notifications from the logical structure of request predicates.RouterFunction<T extends ServerResponse> Represents a function that routes to a handler function.RouterFunctions.Builder Represents a discoverable builder for router functions.RouterFunctions.Visitor Receives notifications from the logical structure of router functions.ServerRequest Represents a server-side HTTP request, as handled by aHandlerFunction
.ServerRequest.Builder Defines a builder for a request.ServerRequest.Headers Represents the headers of the HTTP request.ServerResponse Represents a typed server-side HTTP response, as returned by a handler function or filter function.ServerResponse.BodyBuilder Defines a builder that adds a body to the response.ServerResponse.Context Defines the context used during theServerResponse.writeTo(HttpServletRequest, HttpServletResponse, Context)
.ServerResponse.HeadersBuilder<B extends ServerResponse.HeadersBuilder<B>> Defines a builder that adds headers to the response.类概要 类 说明 RequestPredicates Implementations ofRequestPredicate
that implement various useful request matching operations, such as matching based on path, HTTP method, etc.RouterFunctions Central entry point to Spring's functional web framework. Exposes routing functionality, such as to create aRouterFunction
using a discoverable builder-style API, to create aRouterFunction
given aRequestPredicate
andHandlerFunction
, and to do further subrouting on an existing routing function.