| Modifier and Type | Method and Description |
|---|---|
Client.Builder |
basicAuth(String username,
String password)
Sets the Basic Authentication details for all HTTP connections (subscription,
request and cancellation).
|
io.reactivex.Flowable<ByteBuffer> |
build()
Returns the built
Flowable<ByteBuffer> based on all the builder
options specified. |
Client.Builder |
connectTimeoutMs(int timeoutMs)
Sets the connect timeout in ms for the HTTP connection.
|
<T extends Serializable> |
deserialized()
Returns the
Flowable where deserialization is performed by
Serializer.javaIo(). |
<T> io.reactivex.Flowable<T> |
deserializer(Deserializer<T> serializer)
Sets the deserializer to be used on the arriving
ByteBuffers. |
Client.Builder |
proxy(Proxy proxy)
Sets the proxy for the HTTP connection.
|
Client.Builder |
proxy(String host,
int port)
Sets the proxy details for the HTTP connection.
|
Client.Builder |
readTimeoutMs(int timeoutMs)
Sets the read timeout in ms for the HTTP connection.
|
Client.Builder |
requestHeader(String key,
String value)
Sets a request header for the HTTP connection.
|
Client.Builder |
requestScheduler(io.reactivex.Scheduler scheduler) |
Client.Builder |
sslContext(SSLContext sslContext)
Sets the
SSLContext to be used for HTTP connections. |
Client.Builder |
sslSocketFactory(SSLSocketFactory sslSocketFactory)
Sets the
SSLSocketFactory to be used for HTTPS connections. |
Client.Builder |
transform(io.reactivex.functions.Consumer<HttpURLConnection> transform)
Sets the actions that should be applied to
HttpURLConnection before
calling HttpURLConnection.getInputStream(). |
public Client.Builder readTimeoutMs(int timeoutMs)
Flowable will emit an error.timeoutMs - read timeout for the HTTP connection.public Client.Builder connectTimeoutMs(int timeoutMs)
Flowable will emit an error.timeoutMs - connect timeout for the HTTP connection.public Client.Builder proxy(String host, int port)
host - proxy hostport - proxy portpublic Client.Builder proxy(Proxy proxy)
proxy - the proxy detailspublic Client.Builder transform(io.reactivex.functions.Consumer<HttpURLConnection> transform)
HttpURLConnection before
calling HttpURLConnection.getInputStream(). This applies to all HTTP
calls being the subscription, request and cancel calls.transform - action to applypublic Client.Builder basicAuth(String username, String password)
username - authentication usernamepassword - authentication passwordpublic Client.Builder requestHeader(String key, String value)
key - request header keyvalue - request header valuepublic Client.Builder sslSocketFactory(SSLSocketFactory sslSocketFactory)
SSLSocketFactory to be used for HTTPS connections.sslSocketFactory - ssl socket factorypublic Client.Builder sslContext(SSLContext sslContext)
SSLContext to be used for HTTP connections. The socket
factory will be obtained from the SSLContext.sslContext - ssl contextpublic Client.Builder requestScheduler(io.reactivex.Scheduler scheduler)
public <T> io.reactivex.Flowable<T> deserializer(Deserializer<T> serializer)
ByteBuffers.T - stream typeserializer - the deserializer to be usedpublic <T extends Serializable> io.reactivex.Flowable<T> deserialized()
Flowable where deserialization is performed by
Serializer.javaIo().T - the Flowable result typepublic io.reactivex.Flowable<ByteBuffer> build()
Flowable<ByteBuffer> based on all the builder
options specified.Copyright © 2018–2019. All rights reserved.