Uses of Interface
org.springframework.http.client.ClientHttpResponse
Packages that use ClientHttpResponse Package Description org.springframework.http.client Contains an abstraction over client-side HTTP.org.springframework.http.client.support This package provides generic HTTP support classes, to be used by higher-level classes like RestTemplate.org.springframework.mock.http.client Mock implementations of client-side HTTP abstractions.org.springframework.test.web.client Contains client-side REST testing support.org.springframework.test.web.client.response Contains built-inResponseCreatorimplementations.org.springframework.web.client Core package of the client-side web support.Uses of ClientHttpResponse in org.springframework.http.client
Classes in org.springframework.http.client that implement ClientHttpResponse Modifier and Type Class Description classAbstractClientHttpResponseAbstract base forClientHttpResponse.Methods in org.springframework.http.client that return ClientHttpResponse Modifier and Type Method Description ClientHttpResponseAbstractClientHttpRequest. execute()ClientHttpResponseClientHttpRequest. execute()Execute this request, resulting in aClientHttpResponsethat can be read.ClientHttpResponseClientHttpRequestExecution. execute(HttpRequest request, byte[] body)Execute the request with the given request attributes and body, and return the response.protected abstract ClientHttpResponseAbstractClientHttpRequest. executeInternal(HttpHeaders headers)Abstract template method that writes the given headers and content to the HTTP request.ClientHttpResponseClientHttpRequestInterceptor. intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution)Intercept the given request, and return a response.Methods in org.springframework.http.client that return types with arguments of type ClientHttpResponse Modifier and Type Method Description ListenableFuture<ClientHttpResponse>AsyncClientHttpRequest. executeAsync()Deprecated.Execute this request asynchronously, resulting in a Future handle.ListenableFuture<ClientHttpResponse>AsyncClientHttpRequestExecution. executeAsync(HttpRequest request, byte[] body)Deprecated.Resume the request execution by invoking the next interceptor in the chain or executing the request to the remote service.ListenableFuture<ClientHttpResponse>AsyncClientHttpRequestInterceptor. intercept(HttpRequest request, byte[] body, AsyncClientHttpRequestExecution execution)Deprecated.Intercept the given request, and return a response future.Uses of ClientHttpResponse in org.springframework.http.client.support
Methods in org.springframework.http.client.support that return ClientHttpResponse Modifier and Type Method Description ClientHttpResponseBasicAuthenticationInterceptor. intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution)ClientHttpResponseBasicAuthorizationInterceptor. intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution)Deprecated.Uses of ClientHttpResponse in org.springframework.mock.http.client
Classes in org.springframework.mock.http.client that implement ClientHttpResponse Modifier and Type Class Description classMockClientHttpResponseMock implementation ofClientHttpResponse.Methods in org.springframework.mock.http.client that return ClientHttpResponse Modifier and Type Method Description ClientHttpResponseMockClientHttpRequest. execute()protected ClientHttpResponseMockClientHttpRequest. executeInternal()The default implementation returns the configuredresponse.Methods in org.springframework.mock.http.client that return types with arguments of type ClientHttpResponse Modifier and Type Method Description ListenableFuture<ClientHttpResponse>MockAsyncClientHttpRequest. executeAsync()Deprecated.Methods in org.springframework.mock.http.client with parameters of type ClientHttpResponse Modifier and Type Method Description voidMockClientHttpRequest. setResponse(ClientHttpResponse clientHttpResponse)Uses of ClientHttpResponse in org.springframework.test.web.client
Methods in org.springframework.test.web.client that return ClientHttpResponse Modifier and Type Method Description ClientHttpResponseDefaultRequestExpectation. createResponse(ClientHttpRequest request)Note that as of 5.0.3, the creation of the response, which may block intentionally, is separated from request count tracking, and this method no longer increments the count transparently.ClientHttpResponseResponseCreator. createResponse(ClientHttpRequest request)Create a response for the given request.ClientHttpResponseAbstractRequestExpectationManager. validateRequest(ClientHttpRequest request)ClientHttpResponseRequestExpectationManager. validateRequest(ClientHttpRequest request)Validate the given actual request against the declared expectations.protected ClientHttpResponseAbstractRequestExpectationManager. validateRequestInternal(ClientHttpRequest request)Deprecated.as of 5.0.3, subclasses should implementAbstractRequestExpectationManager.matchRequest(ClientHttpRequest)instead and return only the matched expectation, leaving the call to create the response as a separate step (to be invoked by this class).Uses of ClientHttpResponse in org.springframework.test.web.client.response
Methods in org.springframework.test.web.client.response that return ClientHttpResponse Modifier and Type Method Description ClientHttpResponseDefaultResponseCreator. createResponse(ClientHttpRequest request)Uses of ClientHttpResponse in org.springframework.web.client
Methods in org.springframework.web.client with parameters of type ClientHttpResponse Modifier and Type Method Description THttpMessageConverterExtractor. extractData(ClientHttpResponse response)TResponseExtractor. extractData(ClientHttpResponse response)Extract data from the givenClientHttpResponseand return it.protected CharsetDefaultResponseErrorHandler. getCharset(ClientHttpResponse response)Determine the charset of the response (for inclusion in a status exception).protected MediaTypeHttpMessageConverterExtractor. getContentType(ClientHttpResponse response)Determine the Content-Type of the response based on the "Content-Type" header or otherwise default toMediaType.APPLICATION_OCTET_STREAM.protected HttpStatusDefaultResponseErrorHandler. getHttpStatusCode(ClientHttpResponse response)Deprecated.as of 5.0, in favor ofDefaultResponseErrorHandler.handleError(ClientHttpResponse, HttpStatus)protected byte[]DefaultResponseErrorHandler. getResponseBody(ClientHttpResponse response)Read the body of the given response (for inclusion in a status exception).voidDefaultResponseErrorHandler. handleError(ClientHttpResponse response)Handle the error in the given response with the given resolved status code.protected voidDefaultResponseErrorHandler. handleError(ClientHttpResponse response, HttpStatus statusCode)Handle the error based on the resolved status code.voidExtractingResponseErrorHandler. handleError(ClientHttpResponse response, HttpStatus statusCode)default voidResponseErrorHandler. handleError(URI url, HttpMethod method, ClientHttpResponse response)Alternative toResponseErrorHandler.handleError(ClientHttpResponse)with extra information providing access to the request URL and HTTP method.voidResponseErrorHandler. handleError(ClientHttpResponse response)Handle the error in the given response.protected voidRestTemplate. handleResponse(URI url, HttpMethod method, ClientHttpResponse response)Handle the given response, performing appropriate logging and invoking theResponseErrorHandlerif necessary.booleanDefaultResponseErrorHandler. hasError(ClientHttpResponse response)Delegates toDefaultResponseErrorHandler.hasError(HttpStatus)(for a standard status enum value) orDefaultResponseErrorHandler.hasError(int)(for an unknown status code) with the response status code.booleanResponseErrorHandler. hasError(ClientHttpResponse response)Indicate whether the given response has any errors.