Uses of Interface
io.helidon.webclient.api.HttpClientResponse
Package
Description
Common classes for accessing JSON based REST APIs of third party systems.
Common classes for Vault integration.
Helidon WebClient APIs shared by all types of clients.
Helidon WebClient HTTP/1.1 Support.
Helidon WebClient HTTP/2 Support.
Helidon WebClient SPI.
Helidon WebClient SSE Support.
-
Uses of HttpClientResponse in io.helidon.integrations.common.rest
Modifier and TypeMethodDescriptionprotected Supplier
<HttpClientResponse> RestApiBase.requestBytesPayload
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientRequest requestBuilder, InputStream is) Create a supplier for a response with publisher request.protected Supplier
<HttpClientResponse> RestApiBase.requestJsonPayload
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientRequest requestBuilder, JsonObject jsonObject) Create a supplier for a response with JSON request.protected Supplier
<HttpClientResponse> RestApiBase.requestPayload
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientRequest requestBuilder) Create a supplier for a response.protected Supplier
<HttpClientResponse> RestApiBase.responseSupplier
(Method method, String path, ApiRequest<?> request, String requestId) Create a response supplier from the request.Modifier and TypeMethodDescriptionprotected <T> T
RestApiBase.emptyResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ResponseBuilder<?, T, ?> responseBuilder) Empty response, may be because of aStatus.NOT_FOUND_404
, or some other status, such asStatus.NOT_MODIFIED_304
.protected <R,
T extends ApiOptionalResponse<R>>
TRestApiBase.handleBytesResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ApiOptionalResponse.BuilderBase<?, T, byte[], R> responseBuilder) Handle bytes response for optional bytes entity.protected <R,
T extends ApiOptionalResponse<R>>
TRestApiBase.handleEntityResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ApiOptionalResponse.BuilderBase<?, T, InputStream, R> responseBuilder) Handle response for optional publisher entity.protected <T extends ApiEntityResponse>
TRestApiBase.handleJsonResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ApiEntityResponse.Builder<?, T, JsonObject> responseBuilder) Reads JsonObject from response entity and either calls thejsonOkResponse
.protected <R,
T extends ApiOptionalResponse<R>>
TRestApiBase.handleOptionalJsonResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ApiOptionalResponse.BuilderBase<?, T, JsonObject, R> responseBuilder) Handle response for optional JSON entity.protected <T extends ApiResponse>
TRestApiBase.handleResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ApiResponse.Builder<?, T> responseBuilder) Handle response for a request not expecting an entity.protected <T> T
RestApiBase.jsonOkResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, JsonObject json, ResponseBuilder<?, T, JsonObject> responseBuilder) Builds the response using the response builder provided.protected <T extends ApiResponse>
TRestApiBase.noEntityOkResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ApiResponse.Builder<?, T> responseBuilder) Create a response for no entity.protected ApiRestException
RestApiBase.readError
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response) Read error with no entity (content length set to 0).protected ApiRestException
RestApiBase.readError
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, JsonObject errorObject) Read error with a JSON entity.protected ApiRestException
RestApiBase.readError
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, String entity) Read error with an entity that failed to be parsed into a JSON object.protected ApiRestException
RestApiBase.readErrorFailedEntity
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, Throwable throwable) Read error information when we failed to read response entity.protected ApiRestException
RestApiBase.responseError
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response) Create anApiRestException
. -
Uses of HttpClientResponse in io.helidon.integrations.vault.auths.common
Modifier and TypeMethodDescriptionprotected <T> T
VaultRestApi.emptyResponse
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, ResponseBuilder<?, T, ?> responseBuilder) protected ApiRestException
VaultRestApi.readError
(String path, ApiRequest<?> request, Method method, String requestId, HttpClientResponse response, JsonObject entity) -
Uses of HttpClientResponse in io.helidon.webclient.api
Modifier and TypeClassDescriptionclass
ClientRequestBase<T extends ClientRequest<T>,
R extends HttpClientResponse> Abstract base implementation of an HTTP client.Modifier and TypeMethodDescriptionprotected HttpClientResponse
HttpClientRequest.doOutputStream
(ClientRequest.OutputStreamHandler outputStreamConsumer) protected HttpClientResponse
ClientRequest.outputStream
(ClientRequest.OutputStreamHandler outputStreamConsumer) Handle output stream and submit the request.default HttpClientResponse
ClientRequest.request()
Request without an entity.Submit an entity. -
Uses of HttpClientResponse in io.helidon.webclient.http1
Modifier and TypeMethodDescriptionUpgradeResponse.response()
The HTTP response we got from the server, always present.Modifier and TypeMethodDescriptionstatic UpgradeResponse
UpgradeResponse.failure
(HttpClientResponse response) Create an upgrade failure response.static UpgradeResponse
UpgradeResponse.success
(HttpClientResponse response, ClientConnection connection) Create an upgrade success response. -
Uses of HttpClientResponse in io.helidon.webclient.http2
-
Uses of HttpClientResponse in io.helidon.webclient.spi
Modifier and TypeMethodDescriptionSourceHandlerProvider.handle
(X source, HttpClientResponse response, MediaContext mediaContext) Handles a source.boolean
SourceHandlerProvider.supports
(GenericType<? extends Source<?>> type, HttpClientResponse response) Checks if a provider supports the type. -
Uses of HttpClientResponse in io.helidon.webclient.sse
Modifier and TypeMethodDescriptionSseSourceHandlerProvider.handle
(X source, HttpClientResponse response, MediaContext mediaContext) boolean
SseSourceHandlerProvider.supports
(GenericType<? extends Source<?>> type, HttpClientResponse response)