spring-framework / org.springframework.web.server

Package org.springframework.web.server

Types

ServerWebExchangeDecorator

open class ServerWebExchangeDecorator : ServerWebExchange

A convenient base class for classes that need to wrap another ServerWebExchange. Pre-implements all methods by delegating to the wrapped instance.

Note: if the purpose for using a decorator is to override properties like #getPrincipal(), consider using ServerWebExchange#mutate() instead.

WebExceptionHandler

interface WebExceptionHandler

Contract for handling exceptions during web server exchange processing.

Exceptions

MediaTypeNotSupportedStatusException

open class MediaTypeNotSupportedStatusException : ResponseStatusException

Exception for errors that fit response status 415 (unsupported media type).

MethodNotAllowedException

open class MethodNotAllowedException : ResponseStatusException

Exception for errors that fit response status 405 (method not allowed).

NotAcceptableStatusException

open class NotAcceptableStatusException : ResponseStatusException

Exception for errors that fit response status 406 (not acceptable).

ServerErrorException

open class ServerErrorException : ResponseStatusException

Exception for errors that fit response status 500 (bad request) for use in Spring Web applications. The exception provides additional fields (e.g. an optional MethodParameter if related to the error).

UnsupportedMediaTypeStatusException

open class UnsupportedMediaTypeStatusException : ResponseStatusException

Exception for errors that fit response status 416 (unsupported media type).