Uses of Interface
org.springframework.http.client.ClientHttpRequest
Packages that use ClientHttpRequest 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-inResponseCreator
implementations.org.springframework.web.client Core package of the client-side web support.Uses of ClientHttpRequest in org.springframework.http.client
Classes in org.springframework.http.client that implement ClientHttpRequest Modifier and Type Class Description class
AbstractClientHttpRequest
Abstract base forClientHttpRequest
that makes sure that headers and body are not written multiple times.Methods in org.springframework.http.client that return ClientHttpRequest Modifier and Type Method Description ClientHttpRequest
AbstractClientHttpRequestFactoryWrapper. createRequest(URI uri, HttpMethod httpMethod)
This implementation simply callsAbstractClientHttpRequestFactoryWrapper.createRequest(URI, HttpMethod, ClientHttpRequestFactory)
with the wrapped request factory provided to the constructor.protected abstract ClientHttpRequest
AbstractClientHttpRequestFactoryWrapper. createRequest(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory)
Create a newClientHttpRequest
for the specified URI and HTTP method by using the passed-on request factory.protected ClientHttpRequest
BufferingClientHttpRequestFactory. createRequest(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory)
ClientHttpRequest
ClientHttpRequestFactory. createRequest(URI uri, HttpMethod httpMethod)
Create a newClientHttpRequest
for the specified URI and HTTP method.ClientHttpRequest
HttpComponentsClientHttpRequestFactory. createRequest(URI uri, HttpMethod httpMethod)
protected ClientHttpRequest
InterceptingClientHttpRequestFactory. createRequest(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory)
ClientHttpRequest
Netty4ClientHttpRequestFactory. createRequest(URI uri, HttpMethod httpMethod)
Deprecated.ClientHttpRequest
OkHttp3ClientHttpRequestFactory. createRequest(URI uri, HttpMethod httpMethod)
ClientHttpRequest
SimpleClientHttpRequestFactory. createRequest(URI uri, HttpMethod httpMethod)
Methods in org.springframework.http.client with parameters of type ClientHttpRequest Modifier and Type Method Description void
ClientHttpRequestInitializer. initialize(ClientHttpRequest request)
Initialize the given client HTTP request.Uses of ClientHttpRequest in org.springframework.http.client.support
Methods in org.springframework.http.client.support that return ClientHttpRequest Modifier and Type Method Description protected ClientHttpRequest
HttpAccessor. createRequest(URI url, HttpMethod method)
Create a newClientHttpRequest
via this template'sClientHttpRequestFactory
.Uses of ClientHttpRequest in org.springframework.mock.http.client
Classes in org.springframework.mock.http.client that implement ClientHttpRequest Modifier and Type Class Description class
MockAsyncClientHttpRequest
Deprecated.as of Spring 5.0, with no direct replacementclass
MockClientHttpRequest
Mock implementation ofClientHttpRequest
.Uses of ClientHttpRequest in org.springframework.test.web.client
Methods in org.springframework.test.web.client that return ClientHttpRequest Modifier and Type Method Description ClientHttpRequest
MockMvcClientHttpRequestFactory. createRequest(URI uri, HttpMethod httpMethod)
Methods in org.springframework.test.web.client that return types with arguments of type ClientHttpRequest Modifier and Type Method Description protected List<ClientHttpRequest>
AbstractRequestExpectationManager. getRequests()
Return a read-only list of requests executed so far.Methods in org.springframework.test.web.client with parameters of type ClientHttpRequest Modifier and Type Method Description ClientHttpResponse
DefaultRequestExpectation. 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.ClientHttpResponse
ResponseCreator. createResponse(ClientHttpRequest request)
Create a response for the given request.protected AssertionError
AbstractRequestExpectationManager. createUnexpectedRequestError(ClientHttpRequest request)
Return anAssertionError
that a sub-class can raise for an unexpected request.RequestExpectation
AbstractRequestExpectationManager.RequestExpectationGroup. findExpectation(ClientHttpRequest request)
Return a matching expectation, ornull
if none match.void
DefaultRequestExpectation. match(ClientHttpRequest request)
void
RequestMatcher. match(ClientHttpRequest request)
Match the given request against specific expectations.protected RequestExpectation
AbstractRequestExpectationManager. matchRequest(ClientHttpRequest request)
As of 5.0.3 subclasses should implement this method instead ofAbstractRequestExpectationManager.validateRequestInternal(ClientHttpRequest)
in order to match the request to an expectation, leaving the call to create the response as a separate step (to be invoked by this class).protected RequestExpectation
SimpleRequestExpectationManager. matchRequest(ClientHttpRequest request)
RequestExpectation
UnorderedRequestExpectationManager. matchRequest(ClientHttpRequest request)
ClientHttpResponse
AbstractRequestExpectationManager. validateRequest(ClientHttpRequest request)
ClientHttpResponse
RequestExpectationManager. validateRequest(ClientHttpRequest request)
Validate the given actual request against the declared expectations.protected ClientHttpResponse
AbstractRequestExpectationManager. 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 ClientHttpRequest in org.springframework.test.web.client.response
Methods in org.springframework.test.web.client.response with parameters of type ClientHttpRequest Modifier and Type Method Description ClientHttpResponse
DefaultResponseCreator. createResponse(ClientHttpRequest request)
Uses of ClientHttpRequest in org.springframework.web.client
Methods in org.springframework.web.client with parameters of type ClientHttpRequest Modifier and Type Method Description void
RequestCallback. doWithRequest(ClientHttpRequest request)