Package io.quarkiverse.httpproblem
Class HttpProblem
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.quarkiverse.httpproblem.HttpProblem
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HttpValidationProblem
Representation of RFC9457/RFC7807 Problem schema.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpProblem.Builderbuilder()static HttpProblem.Builderbuilder(HttpProblem original) Creates Builder instance and initializes it with fields from given HttpProblemjakarta.ws.rs.core.Response.StatusTypeDeprecated, for removal: This API element is subject to removal in a future version.intgetTitle()getType()jakarta.ws.rs.core.Responsestatic HttpProblemvalueOf(jakarta.ws.rs.core.Response.Status status) static HttpProblemMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
MEDIA_TYPE
public static final jakarta.ws.rs.core.MediaType MEDIA_TYPE
-
-
Constructor Details
-
HttpProblem
-
-
Method Details
-
valueOf
-
valueOf
-
builder
-
builder
Creates Builder instance and initializes it with fields from given HttpProblem- Parameters:
original- Problem 'prototype'- Returns:
- Builder object with values taken from origin HttpProblem
-
getType
-
getTitle
-
getStatusCode
public int getStatusCode() -
getStatus
@Deprecated(since="3.1.0", forRemoval=true) public jakarta.ws.rs.core.Response.StatusType getStatus()Deprecated, for removal: This API element is subject to removal in a future version.Replaced bygetStatusCode(), will be removed in 4.0.0 release as part of minimizing dependencies to JaxRS/JakartaRS classes.Returns null if status code has no representation in Response.Status enum. -
getDetail
-
getInstance
-
getParameters
-
getHeaders
-
toResponse
public jakarta.ws.rs.core.Response toResponse()
-
getStatusCode(), will be removed in 4.0.0 release as part of minimizing dependencies to JaxRS/JakartaRS classes.