# Package org.springframework.web

@NonNullApi @NonNullFields package org.springframework.web
Common, generic interfaces that define minimal boundary points between Spring's web infrastructure and other framework modules.

Related Packages
Package
Description
org.springframework.web.accept
This package contains classes used to determine the requested the media types in a request.
org.springframework.web.bind
Provides web-specific data binding functionality.
org.springframework.web.client
Core package of the client-side web support.
org.springframework.web.context
Contains a variant of the application context interface for web applications, and the ContextLoaderListener that bootstraps a root web application context.
org.springframework.web.cors
Support for CORS (Cross-Origin Resource Sharing), based on a common `CorsProcessor` strategy.
org.springframework.web.filter
Provides generic filter base classes allowing for bean-style configuration.
org.springframework.web.jsf
Support classes for integrating a JSF web layer with a Spring service layer which is hosted in a Spring root WebApplicationContext.
org.springframework.web.method
Common infrastructure for handler method processing, as used by Spring MVC's `org.springframework.web.servlet.mvc.method` package.
org.springframework.web.multipart
Multipart resolution framework for handling file uploads.
org.springframework.web.server
Core interfaces and classes for Spring's generic, reactive web support.
org.springframework.web.util
Miscellaneous web utility classes, such as HTML escaping and cookie handling.
Class
Description
ErrorResponse
Representation of a complete RFC 9457 error response including status, headers, and an RFC 9457 formatted `ProblemDetail` body.
ErrorResponse.Builder
Builder for an `ErrorResponse`.
ErrorResponse.Interceptor
Callback to perform an action before an RFC-9457 `ProblemDetail` response is rendered.
ErrorResponseException
`RuntimeException` that implements `ErrorResponse` to expose an HTTP status, response headers, and a body formatted as an RFC 9457 `ProblemDetail`.
HttpMediaTypeException
Abstract base for exceptions related to media types.
HttpMediaTypeNotAcceptableException
Exception thrown when the request handler cannot generate a response that is acceptable by the client.
HttpMediaTypeNotSupportedException
Exception thrown when a client POSTs, PUTs, or PATCHes content of a type not supported by request handler.
HttpRequestHandler
Plain handler interface for components that process HTTP requests, analogous to a Servlet.
HttpRequestMethodNotSupportedException
Exception thrown when a request handler does not support a specific request method.
HttpSessionRequiredException
Exception thrown when an HTTP request handler requires a pre-existing session.
SpringServletContainerInitializer
A Spring-provided `ServletContainerInitializer` designed to support code-based configuration of the servlet container using Spring's `WebApplicationInitializer` SPI as opposed to (or possibly in combination with) the traditional `web.xml`-based approach.
WebApplicationInitializer
Interface to be implemented in Servlet environments in order to configure the `ServletContext` programmatically -- as opposed to (or possibly in conjunction with) the traditional `web.xml`-based approach.