Package com.symphony.bdk.http.api
Class HttpClient.Builder
java.lang.Object
com.symphony.bdk.http.api.HttpClient.Builder
- Enclosing class:
- HttpClient
The
HttpClient
fluent builder.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd base path of the web resource target.build()
Add an arbitrary common cookie.Add an arbitrary common header.Add the Java key store to the Http client.Configure proxy host and port.proxyCredentials
(String proxyUser, String proxyPassword) Configure proxy credentials.trustStore
(byte[] trustStore, String trustStorePassword) Add the Java trust store to the Http client.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
basePath
Add base path of the web resource target.- Parameters:
basePath
- a base path of the web resource target.- Returns:
- the updated builder.
-
header
Add an arbitrary common header.- Parameters:
key
- the name of the header.value
- the value of the header.- Returns:
- the updated builder.
-
cookie
Add an arbitrary common cookie.- Parameters:
key
- the name of the header.value
- the value of the header.- Returns:
- the updated builder.
-
keyStore
Add the Java key store to the Http client.- Parameters:
keyStore
- the Java key store.keyStorePassword
- the key store password.- Returns:
- the updated builder.
-
trustStore
Add the Java trust store to the Http client.- Parameters:
trustStore
- the Java trust store.trustStorePassword
- the trust store password.- Returns:
- the updated builder.
-
proxy
Configure proxy host and port.- Parameters:
proxyHost
- the proxy host name.proxyPort
- the proxy port number.- Returns:
- the updated builder.
-
proxyCredentials
Configure proxy credentials.- Parameters:
proxyUser
- proxy username.proxyPassword
- proxy password.- Returns:
- the updated builder.
-
build
-