org.zalando.putittorest.RestFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of put-it-to-rest Show documentation
Show all versions of put-it-to-rest Show documentation
Spring Boot REST Client Auto Configuration
package org.zalando.putittorest;
import org.springframework.http.client.AsyncClientHttpRequestFactory;
import org.springframework.http.converter.HttpMessageConverter;
import org.zalando.riptide.Rest;
import java.util.List;
final class RestFactory {
@SuppressWarnings("unused")
public static Rest create(final AsyncClientHttpRequestFactory requestFactory,
final List> converters, final String baseUrl) {
return Rest.builder()
.requestFactory(requestFactory)
.converters(converters)
.baseUrl(baseUrl)
.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy