类的使用
cn.taketoday.http.ProblemDetail
使用ProblemDetail的程序包
程序包
说明
Contains a basic abstraction over client/server-side HTTP.
Support for asynchronous request processing.
Web Handler
-
cn.taketoday.http中ProblemDetail的使用
修饰符和类型方法说明static ProblemDetailProblemDetail.forRawStatusCode(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, String detail) Create aProblemDetailinstance with the given status and detail.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(HttpStatusCode status) Variant ofsetStatus(int)for chained initialization.Variant ofsetTitle(String)for chained initialization.Variant ofsetType(URI)for chained initialization.参数类型为ProblemDetail的cn.taketoday.http中的方法修饰符和类型方法说明static ResponseEntity.HeadersBuilder<?>ResponseEntity.of(ProblemDetail body) Create a newResponseEntity.HeadersBuilderwith its status set togetStatus()and its body is set toProblemDetail.参数类型为ProblemDetail的cn.taketoday.http中的构造器限定符构造器说明protectedProblemDetail(ProblemDetail other) Copy constructor that could be used from a subclass to re-create aProblemDetailin order to extend it with more fields. -
cn.taketoday.web中ProblemDetail的使用
声明为ProblemDetail的cn.taketoday.web中的字段修饰符和类型字段说明private final ProblemDetailErrorResponseException.bodyprivate final ProblemDetailHttpMediaTypeException.bodyprivate final ProblemDetailHttpRequestMethodNotSupportedException.body修饰符和类型方法说明ErrorResponse.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()InfraConfigurationException.getBody()参数类型为ProblemDetail的cn.taketoday.web中的构造器限定符构造器说明ErrorResponseException(HttpStatusCode status, ProblemDetail body, Throwable cause) Constructor with a givenProblemDetailinstance, possibly a subclass ofProblemDetailwith extended fields. -
cn.taketoday.web.bind中ProblemDetail的使用
修饰符和类型字段说明private final ProblemDetailMethodArgumentNotValidException.bodyprivate final ProblemDetailRequestBindingException.body -
cn.taketoday.web.context.async中ProblemDetail的使用
-
cn.taketoday.web.handler中ProblemDetail的使用