com.nycjv321.http.builder.MessageBodyClientBuilder 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.MessageBodyClient;
import java.util.Objects;
/**
* Created by fedora on 11/18/15.
*/
public class MessageBodyClientBuilder extends SimpleHttpClientBuilder {
private MessageBodyClientBuilder() {
super();
}
public static MessageBodyClientBuilder create() {
return new MessageBodyClientBuilder();
}
@Override
public MessageBodyClient build() {
if (Objects.nonNull(timeouts)) {
return new MessageBodyClient(httpClientSupplier, timeouts);
} else {
return new MessageBodyClient(httpClientSupplier, Requests.Timeouts.getDefault());
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy