Uses of Class
org.springframework.http.ProblemDetail
Package
Description
Contains a basic abstraction over client/server-side HTTP.
Common, generic interfaces that define minimal boundary points
between Spring's web infrastructure and other framework modules.
Provides web-specific data binding functionality.
Support for asynchronous request processing.
Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
-
Uses of ProblemDetail in org.springframework.http
Modifier and TypeMethodDescriptionstatic ProblemDetail
ProblemDetail.forRawStatusCode
(int status) Create aProblemDetail
instance with the given status value.static ProblemDetail
ProblemDetail.forStatus
(HttpStatus status) Create aProblemDetail
instance with the given status code.ProblemDetail.withDetail
(String detail) Variant ofsetDetail(String)
for chained initialization.ProblemDetail.withInstance
(URI instance) Variant ofsetInstance(URI)
for chained initialization.ProblemDetail.withRawStatusCode
(int status) Variant ofsetStatus(int)
for chained initialization.ProblemDetail.withStatus
(HttpStatus status) Variant ofsetStatus(int)
for chained initialization.Variant ofsetTitle(String)
for chained initialization.Variant ofsetType(URI)
for chained initialization.Modifier and TypeMethodDescriptionstatic ResponseEntity.HeadersBuilder<?>
ResponseEntity.of
(ProblemDetail body) Create a builder for aResponseEntity
with the givenProblemDetail
as the body, also matching to itsstatus
.ModifierConstructorDescriptionprotected
ProblemDetail
(ProblemDetail other) Copy constructor that could be used from a subclass to re-create aProblemDetail
in order to extend it with more fields. -
Uses of ProblemDetail in org.springframework.web
Modifier and TypeMethodDescriptionErrorResponse.getBody()
Return the body for the response, formatted as an RFC 7807ProblemDetail
whosestatus
should match the response status.final ProblemDetail
ErrorResponseException.getBody()
Return the body for the response.HttpMediaTypeException.getBody()
HttpRequestMethodNotSupportedException.getBody()
ModifierConstructorDescriptionErrorResponseException
(int status, ProblemDetail body, Throwable cause) Constructor with a givenProblemDetail
instance, possibly a subclass ofProblemDetail
with extended fields. -
Uses of ProblemDetail in org.springframework.web.bind
-
Uses of ProblemDetail in org.springframework.web.context.request.async
-
Uses of ProblemDetail in org.springframework.web.servlet