Class Connection.ConnectionBuilder<G extends GsonFactoryBase, C extends Connection<G>, B extends Connection.ConnectionBuilder<G,C,B> >
java.lang.Object
com.amilesend.client.connection.Connection.ConnectionBuilder<G,C,B>
- Enclosing class:
Connection<G extends GsonFactoryBase>
public abstract static class Connection.ConnectionBuilder<G extends GsonFactoryBase, C extends Connection<G>, B extends Connection.ConnectionBuilder<G,C,B>>
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthManager(@NonNull AuthManager<?> authManager) The authorization manager used to authenticate and sign requests.The base URL for the Graph API.abstract Cbuild()gsonFactory(G gsonFactory) The Gson factory used to create GSON instance that marshals request and responses to/from JSON.httpClient(@NonNull okhttp3.OkHttpClient httpClient) The underlying http client.isGzipContentEncodingEnabled(boolean isGzipContentEncodingEnabled) Flag indicator that the response is GZIP encoded.retryStrategy(@NonNull RetryStrategy retryStrategy) The retry strategy to use.toString()The user agent to include in request headers.
-
Constructor Details
-
ConnectionBuilder
public ConnectionBuilder()
-
-
Method Details
-
httpClient
The underlying http client.- Returns:
this.
-
gsonFactory
-
authManager
The authorization manager used to authenticate and sign requests.- Returns:
this.
-
baseUrl
-
userAgent
-
isGzipContentEncodingEnabled
Flag indicator that the response is GZIP encoded.- Returns:
this.
-
retryStrategy
The retry strategy to use.- Returns:
this.
-
build
-
toString
-