Uses of Interface
org.springframework.web.client.RestClient.Builder
Packages that use RestClient.Builder
Package
Description
Contains client-side REST testing support.
Core package of the client-side web support.
Classes supporting the
org.springframework.web.client package.-
Uses of RestClient.Builder in org.springframework.test.web.client
Methods in org.springframework.test.web.client with parameters of type RestClient.BuilderModifier and TypeMethodDescriptionMockRestServiceServer.bindTo(RestClient.Builder restClientBuilder) Return a builder for aMockRestServiceServerthat should be used to reply to theRestClientfor the givenRestClient.Builder. -
Uses of RestClient.Builder in org.springframework.web.client
Methods in org.springframework.web.client that return RestClient.BuilderModifier and TypeMethodDescriptionRestClient.Builder.apiVersionInserter(ApiVersionInserter apiVersionInserter) Configure anApiVersionInserterto abstract how an API version specified viaRestClient.RequestHeadersSpec.apiVersion(Object)is inserted into the request.RestClient.Builder.apply(Consumer<RestClient.Builder> builderConsumer) Apply the givenConsumerto this builder instance.Configure a base URL for requests.Configure a baseURIfor requests.RestClient.Builder.bufferContent(BiPredicate<URI, HttpMethod> predicate) Enable buffering of request and response, aggregating all content before it is sent, and making it possible to read the response body repeatedly.static RestClient.BuilderRestClient.builder()Obtain aRestClientbuilder.static RestClient.BuilderRestClient.builder(RestTemplate restTemplate) Obtain aRestClientbuilder based on the configuration of the givenRestTemplate.RestClient.Builder.clone()Clone thisRestClient.Builder.RestClient.Builder.configureMessageConverters(Consumer<HttpMessageConverters.ClientBuilder> configurer) Configure the message converters for theRestClientto use.RestClient.Builder.defaultApiVersion(Object version) Global option to specify an API version to be added to every request, if not explicitly set.RestClient.Builder.defaultCookie(String cookie, String... values) Global option to specify a cookie to be added to every request, if the request does not already contain such a cookie.RestClient.Builder.defaultCookies(Consumer<MultiValueMap<String, String>> cookiesConsumer) Provides access to everydefaultCookie(String, String...)declared so far with the possibility to add, replace, or remove.RestClient.Builder.defaultHeader(String header, String... values) Global option to specify a header to be added to every request, if the request does not already contain such a header.RestClient.Builder.defaultHeaders(Consumer<HttpHeaders> headersConsumer) Provide a consumer to access to every default header declared so far, with the possibility to add, replace, or remove.RestClient.Builder.defaultRequest(Consumer<RestClient.RequestHeadersSpec<?>> defaultRequest) Provide a consumer to customize every request being built.RestClient.Builder.defaultStatusHandler(Predicate<HttpStatusCode> statusPredicate, RestClient.ResponseSpec.ErrorHandler errorHandler) Register a default status handler to apply to every response.RestClient.Builder.defaultStatusHandler(ResponseErrorHandler errorHandler) Register a default status handler to apply to every response.RestClient.Builder.defaultUriVariables(Map<String, ?> defaultUriVariables) Configure default URL variable values to use when expanding URI templates with aMap.RestClient.Builder.messageConverters(Iterable<HttpMessageConverter<?>> messageConverters) Set the message converters for theRestClientto use.RestClient.Builder.messageConverters(Consumer<List<HttpMessageConverter<?>>> configurer) Deprecated, for removal: This API element is subject to removal in a future version.RestClient.mutate()Return a builder to create a newRestClientwhose settings are replicated from thisRestClient.RestClient.Builder.observationConvention(ClientRequestObservationConvention observationConvention) Configure theObservationConventionto use for collecting metadata for the request observation.RestClient.Builder.observationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) Configure theObservationRegistryto use for recording HTTP client observations.RestClient.Builder.requestFactory(ClientHttpRequestFactory requestFactory) Configure theClientHttpRequestFactoryto use.RestClient.Builder.requestInitializer(ClientHttpRequestInitializer initializer) Add the given request initializer to the end of the initializer chain.RestClient.Builder.requestInitializers(Consumer<List<ClientHttpRequestInitializer>> initializersConsumer) Manipulate the initializers with the given consumer.RestClient.Builder.requestInterceptor(ClientHttpRequestInterceptor interceptor) Add the given request interceptor to the end of the interceptor chain.RestClient.Builder.requestInterceptors(Consumer<List<ClientHttpRequestInterceptor>> interceptorsConsumer) Manipulate the interceptors with the given consumer.RestClient.Builder.uriBuilderFactory(UriBuilderFactory uriBuilderFactory) Provide a pre-configuredUriBuilderFactoryinstance.Method parameters in org.springframework.web.client with type arguments of type RestClient.BuilderModifier and TypeMethodDescriptionRestClient.Builder.apply(Consumer<RestClient.Builder> builderConsumer) Apply the givenConsumerto this builder instance. -
Uses of RestClient.Builder in org.springframework.web.client.support
Subinterfaces with type arguments of type RestClient.Builder in org.springframework.web.client.supportModifier and TypeInterfaceDescriptioninterfaceExtension ofHttpServiceGroupConfigurerto configure groups with aRestClient.Classes in org.springframework.web.client.support that implement interfaces with type arguments of type RestClient.BuilderMethods in org.springframework.web.client.support that return RestClient.BuilderMethods in org.springframework.web.client.support that return types with arguments of type RestClient.BuilderModifier and TypeMethodDescriptionClass<? extends HttpServiceGroupConfigurer<RestClient.Builder>> RestClientHttpServiceGroupAdapter.getConfigurerType()Methods in org.springframework.web.client.support with parameters of type RestClient.BuilderModifier and TypeMethodDescriptionRestClientHttpServiceGroupAdapter.createExchangeAdapter(RestClient.Builder clientBuilder)
configureMessageConverters(Consumer)