All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zalando.putittorest.RestFactory Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
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