Package org.apache.juneau.rest.client
Class JavaHttpTransportBuilder
java.lang.Object
org.apache.juneau.rest.client.JavaHttpTransportBuilder
- Since:
- 9.2.1
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns theJavaHttpTransport.httpClient(HttpClient value) Sets the underlyingHttpClientto use.
-
Method Details
-
httpClient
Sets the underlyingHttpClientto use.If not set, a default client is created via
HttpClient.newHttpClient().- Parameters:
value- The client to use. Can benull (a default client is created viaHttpClient.newHttpClient()).- Returns:
- This object.
-
build
Builds and returns theJavaHttpTransport.- Returns:
- A new instance. Never
null .
-