Uses of Interface
org.springframework.http.client.ClientHttpRequest
Packages that use ClientHttpRequest
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.
Mock implementations of client-side HTTP abstractions.
Contains client-side REST testing support.
Contains built-in
ResponseCreator
implementations.Core package of the client-side web support.
-
Uses of ClientHttpRequest in org.springframework.http.client
Classes in org.springframework.http.client that implement ClientHttpRequestModifier and TypeClassDescriptionclass
Abstract base forClientHttpRequest
that makes sure that headers and body are not written multiple times.Methods in org.springframework.http.client that return ClientHttpRequestModifier and TypeMethodDescriptionfinal 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) ClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) Create a newClientHttpRequest
for the specified URI and HTTP method.HttpComponentsClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) protected ClientHttpRequest
InterceptingClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) JettyClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) OkHttp3ClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) SimpleClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) Methods in org.springframework.http.client with parameters of type ClientHttpRequestModifier and TypeMethodDescriptionvoid
ClientHttpRequestInitializer.initialize
(ClientHttpRequest request) Initialize the given client HTTP request. -
Uses of ClientHttpRequest in org.springframework.http.client.observation
Constructors in org.springframework.http.client.observation with parameters of type ClientHttpRequest -
Uses of ClientHttpRequest in org.springframework.http.client.support
Methods in org.springframework.http.client.support that return ClientHttpRequestModifier and TypeMethodDescriptionprotected 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 -
Uses of ClientHttpRequest in org.springframework.test.web.client
Methods in org.springframework.test.web.client that return ClientHttpRequestModifier and TypeMethodDescriptionMockMvcClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) Methods in org.springframework.test.web.client that return types with arguments of type ClientHttpRequestModifier and TypeMethodDescriptionprotected 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 ClientHttpRequestModifier and TypeMethodDescriptionDefaultRequestExpectation.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.ResponseCreator.createResponse
(ClientHttpRequest request) Create a response for the given request.protected AssertionError
AbstractRequestExpectationManager.createUnexpectedRequestError
(ClientHttpRequest request) Return anAssertionError
that a subclass can raise for an unexpected request.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 of#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) UnorderedRequestExpectationManager.matchRequest
(ClientHttpRequest request) AbstractRequestExpectationManager.validateRequest
(ClientHttpRequest request) RequestExpectationManager.validateRequest
(ClientHttpRequest request) Validate the given actual request against the declared expectations. -
Uses of ClientHttpRequest in org.springframework.test.web.client.response
Methods in org.springframework.test.web.client.response with parameters of type ClientHttpRequestModifier and TypeMethodDescriptionDefaultResponseCreator.createResponse
(ClientHttpRequest request) ExecutingResponseCreator.createResponse
(ClientHttpRequest request) -
Uses of ClientHttpRequest in org.springframework.web.client
Methods in org.springframework.web.client with parameters of type ClientHttpRequest