Uses of Interface
org.springframework.http.client.ClientHttpResponse
Packages that use ClientHttpResponse
Package
Description
Contains an abstraction over client-side HTTP.
This package provides support for client HTTP
Observation.This package provides generic HTTP support classes,
to be used by higher-level classes like RestTemplate.
Core package of the client-side web support.
-
Uses of ClientHttpResponse in org.springframework.http.client
Methods in org.springframework.http.client that return ClientHttpResponseModifier and TypeMethodDescriptionfinal ClientHttpResponseAbstractClientHttpRequest.execute()ClientHttpRequest.execute()Execute this request, resulting in aClientHttpResponsethat can be read.ClientHttpRequestExecution.execute(HttpRequest request, byte[] body) Execute the request with the given request attributes and body, and return the response.protected final ClientHttpResponseAbstractBufferingClientHttpRequest.executeInternal(HttpHeaders headers) protected abstract ClientHttpResponseAbstractBufferingClientHttpRequest.executeInternal(HttpHeaders headers, byte[] bufferedOutput) Abstract template method that writes the given headers and content to the HTTP request.protected abstract ClientHttpResponseAbstractClientHttpRequest.executeInternal(HttpHeaders headers) Abstract template method that writes the given headers and content to the HTTP request.protected final ClientHttpResponseAbstractStreamingClientHttpRequest.executeInternal(HttpHeaders headers) protected abstract ClientHttpResponseAbstractStreamingClientHttpRequest.executeInternal(HttpHeaders headers, @Nullable StreamingHttpOutputMessage.Body body) Abstract method for concrete implementations to write the headers andStreamingHttpOutputMessage.Bodyto the HTTP request.ClientHttpRequestInterceptor.intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) Intercept the given request, and return a response. -
Uses of ClientHttpResponse in org.springframework.http.client.observation
Subclasses with type arguments of type ClientHttpResponse in org.springframework.http.client.observationModifier and TypeClassDescriptionclassContext that holds information for metadata collection during theclient HTTP exchangesobservations. -
Uses of ClientHttpResponse in org.springframework.http.client.support
Methods in org.springframework.http.client.support that return ClientHttpResponseModifier and TypeMethodDescriptionBasicAuthenticationInterceptor.intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) -
Uses of ClientHttpResponse in org.springframework.web.client
Subinterfaces of ClientHttpResponse in org.springframework.web.clientModifier and TypeInterfaceDescriptionstatic interfaceExtension ofClientHttpResponsethat can convert the body.Methods in org.springframework.web.client with parameters of type ClientHttpResponseModifier and TypeMethodDescriptionHttpMessageConverterExtractor.extractData(ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.ResponseExtractor.extractData(ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Extract data from the givenClientHttpResponseand return it.DefaultResponseErrorHandler.getCharset(ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Determine the charset of the response (for inclusion in a status exception).protected MediaTypeHttpMessageConverterExtractor.getContentType(ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Determine the Content-Type of the response based on the "Content-Type" header or otherwise default toMediaType.APPLICATION_OCTET_STREAM.protected byte[]DefaultResponseErrorHandler.getResponseBody(ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Read the body of the given response (for inclusion in a status exception).voidRestClient.ResponseSpec.ErrorHandler.handle(HttpRequest request, ClientHttpResponse response) Handle the error in the given response.voidDefaultResponseErrorHandler.handleError(URI url, HttpMethod method, ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Handle the error in the given response with the given resolved status code and extra information providing access to the request URL and HTTP method.protected voidDefaultResponseErrorHandler.handleError(ClientHttpResponse response, HttpStatusCode statusCode, @Nullable URI url, @Nullable HttpMethod method) Deprecated, for removal: This API element is subject to removal in a future version.Handle the error based on the resolved status code.protected voidExtractingResponseErrorHandler.handleError(ClientHttpResponse response, HttpStatusCode statusCode, @Nullable URI url, @Nullable HttpMethod method) Deprecated, for removal: This API element is subject to removal in a future version.default voidResponseErrorHandler.handleError(URI url, HttpMethod method, ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Handle the error in the given response.protected voidRestTemplate.handleResponse(URI url, HttpMethod method, ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Handle the given response, performing appropriate logging and invoking theResponseErrorHandlerif necessary.booleanDefaultResponseErrorHandler.hasError(ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Delegates toDefaultResponseErrorHandler.hasError(HttpStatusCode)with the response status code.booleanNoOpResponseErrorHandler.hasError(ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.booleanResponseErrorHandler.hasError(ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Indicate whether the given response has any errors.protected Function<org.springframework.core.ResolvableType, ?> DefaultResponseErrorHandler.initBodyConvertFunction(ClientHttpResponse response, byte[] body) Deprecated, for removal: This API element is subject to removal in a future version.Return a function for decoding the error content.