Package org.springframework.web.servlet.function
@NonNullApi
@NonNullFields
package org.springframework.web.servlet.function
Provides the types that make up Spring's functional web framework for Servlet environments.
-
ClassDescriptionAsynchronous subtype of
ServerResponse
that exposes the future response.Entity-specific subtype ofServerResponse
that exposes entity data.Defines a builder forEntityResponse
.Represents a function that filters a handler function.HandlerFunction<T extends ServerResponse>Represents a function that handles a request.Rendering-specific subtype ofServerResponse
that exposes model and template data.Defines a builder forRenderingResponse
.Represents a function that evaluates on a givenServerRequest
.Implementations ofRequestPredicate
that implement various useful request matching operations, such as matching based on path, HTTP method, etc.Receives notifications from the logical structure of request predicates.RouterFunction<T extends ServerResponse>Represents a function that routes to a handler function.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.Represents a discoverable builder for router functions.Receives notifications from the logical structure of router functions.Represents a server-side HTTP request, as handled by aHandlerFunction
.Defines a builder for a request.Represents the headers of the HTTP request.Represents a typed server-side HTTP response, as returned by a handler function or filter function.Defines a builder that adds a body to the response.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.Defines the contract forServerResponse.HeadersBuilder.build(WriteFunction)
.Defines a builder for a body that sends server-sent events.