Class ApiResponse
java.lang.Object
io.helidon.integrations.common.rest.ApiJsonParser
io.helidon.integrations.common.rest.ApiResponse
- Direct Known Subclasses:
ApiEntityResponse
,ApiOptionalResponse
,ConfigureK8s.Response
,CreateAppRole.Response
,CreateCubbyhole.Response
,CreateKey.Response
,CreateKv1.Response
,CreateKv2.Response
,CreatePolicy.Response
,CreateRole.Response
,CreateTokenRole.Response
,DbConfigure.Response
,DbCreateRole.Response
,DbDelete.Response
,DbDeleteRole.Response
,DeleteAllKv2.Response
,DeleteAppRole.Response
,DeleteCubbyhole.Response
,DeleteKey.Response
,DeleteKv1.Response
,DeleteKv2.Response
,DeletePolicy.Response
,DeleteRole.Response
,DeleteTokenRole.Response
,DestroyKv2.Response
,DestroySecretId.Response
,DisableAuth.Response
,DisableEngine.Response
,EnableAuth.Response
,EnableEngine.Response
,GenerateSelfSignedRoot.Response
,PkiRole.Response
,RevokeAndOrphanToken.Response
,RevokeToken.Response
,UndeleteKv2.Response
,UpdateCubbyhole.Response
,UpdateKeyConfig.Response
,UpdateKv1.Response
A base for responses without an entity.
For responses that may have an entity, use
ApiOptionalResponse
,
for responses that must have an entity, use ApiEntityResponse
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ApiResponse.Builder<B extends ApiResponse.Builder<B,
T>, T extends ApiResponse> Abstract fluent API builder to build subclasses ofApiResponse
. -
Constructor Summary
ModifierConstructorDescriptionprotected
ApiResponse
(ApiResponse.Builder<?, ?> builder) Create a new rest response. -
Method Summary
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonParser
isPresent, stringValue, toBoolean, toBytesBase64, toDouble, toInstant, toInt, toList, toLong, toMap, toObject, toString
-
Constructor Details
-
ApiResponse
Create a new rest response.- Parameters:
builder
- subclass of builder
-
-
Method Details
-
headers
HTTP headers returned in the response.- Returns:
- HTTP headers
-
status
HTTP status returned. In most cases for successful invocation, this should be one of statuses in the200
family. In case the invocation resulted in an error, an exception is thrown instead of returning a response.- Returns:
- status of the response (only if successful)
-
requestId
Request ID that was used. As this ID may be generated during request, this is the only way to obtain it.- Returns:
- request ID used when invoking the integrated system
-