com.nycjv321.http.builder.ResponseClientBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simple-http-client Show documentation
Show all versions of simple-http-client Show documentation
A simple wrapper of Apache's Http Client Library that tries to
make interacting with HTTP Easy
The newest version!
package com.nycjv321.http.builder;
import com.nycjv321.http.Requests;
import com.nycjv321.http.client.ResponsesClient;
import java.util.Objects;
/**
* Created by fedora on 11/18/15.
*/
public class ResponseClientBuilder extends SimpleHttpClientBuilder {
private ResponseClientBuilder() {
super();
}
public static ResponseClientBuilder create() {
return new ResponseClientBuilder();
}
@Override
public ResponsesClient build() {
if (Objects.nonNull(timeouts)) {
return new ResponsesClient(httpClientSupplier, timeouts);
} else {
return new ResponsesClient(httpClientSupplier, Requests.Timeouts.getDefault());
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy