Top Description Interfaces Classes
module spring.web

Package org.springframework.web

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Common, generic interfaces that define minimal boundary points between Spring's web infrastructure and other framework modules.

Interface Summary

Modifier and TypeInterface and Description
public interface
ErrorResponse

Representation of a complete RFC 7807 error response including status, headers, and an RFC 7807 formatted ProblemDetail body.

public interface
HttpRequestHandler

Plain handler interface for components that process HTTP requests, analogous to a Servlet.

public interface
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.

Class Summary

Modifier and TypeClass and Description
pack-priv class
public class
ErrorResponseException

RuntimeException that implements ErrorResponse to expose an HTTP status, response headers, and a body formatted as an RFC 7807 ProblemDetail.

public abstract class
HttpMediaTypeException

Abstract base for exceptions related to media types.

public class
HttpMediaTypeNotAcceptableException

Exception thrown when the request handler cannot generate a response that is acceptable by the client.

public class
HttpMediaTypeNotSupportedException

Exception thrown when a client POSTs, PUTs, or PATCHes content of a type not supported by request handler.

public class
HttpRequestMethodNotSupportedException

Exception thrown when a request handler does not support a specific request method.

public class
HttpSessionRequiredException

Exception thrown when an HTTP request handler requires a pre-existing session.

public class
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.