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.
Multipart resolution framework for handling file uploads.
Support classes for the multipart resolution framework.
Infrastructure for annotation-based handler method processing.
Core interfaces and classes for Spring's generic, reactive web support.
Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package.Support classes for serving static resources.
-
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.static ProblemDetailProblemDetail.forStatusAndDetail(HttpStatusCode status, @Nullable String detail) Create aProblemDetailinstance with the given status and detail.Methods in org.springframework.http with parameters of type ProblemDetailModifier and TypeMethodDescriptionstatic ResponseEntity.HeadersBuilder<?> ResponseEntity.of(ProblemDetail body) Create a newResponseEntity.HeadersBuilderwith its status set toProblemDetail.getStatus()and its body is set toProblemDetail.Constructors in org.springframework.http with parameters of type ProblemDetailModifierConstructorDescriptionprotectedProblemDetail(ProblemDetail other) Copy constructor that a subclass can use to re-create and extend aProblemDetailwith additional properties. -
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 9457ProblemDetailwhosestatusshould match the response status.final ProblemDetailErrorResponseException.getBody()Return the body for the response.HttpMediaTypeException.getBody()HttpRequestMethodNotSupportedException.getBody()default ProblemDetailErrorResponse.updateAndGetBody(@Nullable MessageSource messageSource, Locale locale) Use the givenMessageSourceto resolve thetype,title, anddetailmessage codes, and then use the resolved values to update the corresponding fields inErrorResponse.getBody().Methods in org.springframework.web with parameters of type ProblemDetailModifier and TypeMethodDescriptionstatic ErrorResponse.BuilderErrorResponse.builder(Throwable ex, ProblemDetail problemDetail) Variant ofErrorResponse.builder(Throwable, HttpStatusCode, String)for use with a customProblemDetailinstance.voidErrorResponse.Interceptor.handleError(ProblemDetail detail, @Nullable ErrorResponse errorResponse) Handle the givenProblemDetailthat's going to be rendered, and theErrorResponseit originates from, if applicable.Constructors in org.springframework.web with parameters of type ProblemDetailModifierConstructorDescriptionErrorResponseException(HttpStatusCode status, ProblemDetail body, @Nullable Throwable cause) Constructor with a givenProblemDetailinstance, possibly a subclass ofProblemDetailwith extended fields.ErrorResponseException(HttpStatusCode status, ProblemDetail body, @Nullable Throwable cause, @Nullable String messageDetailCode, Object @Nullable [] messageDetailArguments) Constructor with a givenProblemDetail, and aMessageSourcecode and arguments to resolve the detail message with. -
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.multipart
Methods in org.springframework.web.multipart that return ProblemDetail -
Uses of ProblemDetail in org.springframework.web.multipart.support
Methods in org.springframework.web.multipart.support that return ProblemDetailModifier and TypeMethodDescriptionMissingServletRequestPartException.getBody()Return the body for the response, formatted as an RFC 9457ProblemDetailwhosestatusshould match the response status. -
Uses of ProblemDetail in org.springframework.web.reactive.result.method.annotation
Methods in org.springframework.web.reactive.result.method.annotation that return ProblemDetailModifier and TypeMethodDescriptionprotected ProblemDetailResponseEntityExceptionHandler.createProblemDetail(Exception ex, HttpStatusCode status, String defaultDetail, @Nullable String detailMessageCode, Object @Nullable [] detailMessageArguments, ServerWebExchange exchange) Convenience method to create aProblemDetailfor any exception that doesn't implementErrorResponse, also performing aMessageSourcelookup for the "detail" field.Methods in org.springframework.web.reactive.result.method.annotation with parameters of type ProblemDetailModifier and TypeMethodDescriptionprotected voidAbstractMessageWriterResultHandler.invokeErrorResponseInterceptors(ProblemDetail detail, @Nullable ErrorResponse errorResponse) Invoke the configuredErrorResponse.Interceptor's. -
Uses of ProblemDetail in org.springframework.web.server
Methods in org.springframework.web.server that return ProblemDetailModifier and TypeMethodDescriptionResponseStatusException.updateAndGetBody(@Nullable MessageSource messageSource, Locale locale) -
Uses of ProblemDetail in org.springframework.web.servlet
Methods in org.springframework.web.servlet that return ProblemDetail -
Uses of ProblemDetail in org.springframework.web.servlet.mvc.method.annotation
Methods in org.springframework.web.servlet.mvc.method.annotation that return ProblemDetailModifier and TypeMethodDescriptionprotected ProblemDetailResponseEntityExceptionHandler.createProblemDetail(Exception ex, HttpStatusCode status, String defaultDetail, @Nullable String detailMessageCode, Object @Nullable [] detailMessageArguments, WebRequest request) Convenience method to create aProblemDetailfor any exception that doesn't implementErrorResponse, also performing aMessageSourcelookup for the "detail" field.Methods in org.springframework.web.servlet.mvc.method.annotation with parameters of type ProblemDetailModifier and TypeMethodDescriptionprotected voidAbstractMessageConverterMethodProcessor.invokeErrorResponseInterceptors(ProblemDetail detail, @Nullable ErrorResponse errorResponse) Invoke the configuredErrorResponse.Interceptor's. -
Uses of ProblemDetail in org.springframework.web.servlet.resource
Methods in org.springframework.web.servlet.resource that return ProblemDetail