Uses of Class
org.springframework.http.ProblemDetail
Packages that use 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
Methods in org.springframework.http that return ProblemDetailModifier and TypeMethodDescriptionstatic ProblemDetailProblemDetail.forStatus(int status) Create aProblemDetailinstance with the given status value.static ProblemDetailProblemDetail.forStatus(HttpStatusCode status) Create aProblemDetailinstance 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.withStatus(int status) Variant ofsetStatus(int)for chained initialization.ProblemDetail.withStatus(HttpStatusCode statusCode) Variant ofsetStatus(int)for chained initialization.Variant ofsetTitle(String)for chained initialization.Variant ofsetType(URI)for chained initialization.Methods in org.springframework.http with parameters of type ProblemDetailModifier and TypeMethodDescriptionstatic ResponseEntity.HeadersBuilder<?>ResponseEntity.of(ProblemDetail body) Create a builder for aResponseEntitywith the givenProblemDetailas the body, also matching to itsstatus.Constructors in org.springframework.http with parameters of type ProblemDetailModifierConstructorDescriptionprotectedProblemDetail(ProblemDetail other) Copy constructor that could be used from a subclass to re-create aProblemDetailin order to extend it with more fields. -
Uses of ProblemDetail in org.springframework.web
Methods in org.springframework.web that return ProblemDetailModifier and TypeMethodDescriptionErrorResponse.getBody()Return the body for the response, formatted as an RFC 7807ProblemDetailwhosestatusshould match the response status.final ProblemDetailErrorResponseException.getBody()Return the body for the response.HttpMediaTypeException.getBody()HttpRequestMethodNotSupportedException.getBody()Constructors in org.springframework.web with parameters of type ProblemDetailModifierConstructorDescriptionErrorResponseException(HttpStatusCode status, ProblemDetail body, Throwable cause) Constructor with a givenProblemDetailinstance, possibly a subclass ofProblemDetailwith extended fields. -
Uses of ProblemDetail in org.springframework.web.bind
Methods in org.springframework.web.bind that return ProblemDetail -
Uses of ProblemDetail in org.springframework.web.context.request.async
Methods in org.springframework.web.context.request.async that return ProblemDetail -
Uses of ProblemDetail in org.springframework.web.servlet
Methods in org.springframework.web.servlet that return ProblemDetail