Class ConnectionBuilder<B extends ConnectionBuilder, G extends GsonFactoryBase, C extends Connection<G>>
java.lang.Object
com.amilesend.client.connection.ConnectionBuilder<B,G,C>
- Direct Known Subclasses:
DefaultConnectionBuilder
public abstract class ConnectionBuilder<B extends ConnectionBuilder, G extends GsonFactoryBase, C extends Connection<G>>
extends Object
Builder to construct new default instances of a
Connection.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe max length of the base URL. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthManager(AuthManager<?> authManager) abstract Cbuild()gsonFactory(G gsonFactory) httpClient(okhttp3.OkHttpClient httpClient) isGzipContentEncodingEnabled(boolean isGzipContentEncodingEnabled) retryStrategy(RetryStrategy retryStrategy)
-
Field Details
-
MAX_BASE_URL_STR_LENGTH
public static final int MAX_BASE_URL_STR_LENGTHThe max length of the base URL.- See Also:
-
-
Constructor Details
-
ConnectionBuilder
public ConnectionBuilder()
-
-
Method Details
-
httpClient
-
gsonFactory
-
authManager
-
baseUrl
-
userAgent
-
isGzipContentEncodingEnabled
-
retryStrategy
-
build
-