Package com.amilesend.client.connection
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 C
build()
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) toString()
The user agent to include in request headers.
-
Constructor Details
-
ConnectionBuilder
public ConnectionBuilder()
-
-
Method Details
-
httpClient
The underlying http client.- Returns:
this
.
-
gsonFactory
The Gson factory used to create GSON instance that marshals request and responses to/from JSON.- Returns:
this
.
-
authManager
The authorization manager used to authenticate and sign requests.- Returns:
this
.
-
baseUrl
The base URL for the Graph API.- Returns:
this
.
-
userAgent
The user agent to include in request headers.- Returns:
this
.
-
isGzipContentEncodingEnabled
- Returns:
this
.
-
build
-
toString
-