-
public class MenigaSettings
Copyright 2017 Meniga Iceland Inc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
MenigaSettings.Builder
-
Field Summary
Fields Modifier and Type Field Description private final HttpUrl
endpoint
private final Authenticator
authenticator
private final long
timeoutInSeconds
private PersistenceProvider
persistenceProvider
private final Map<Service, SpecialServiceEndpointDefinition>
specialServiceEndpoints
private final List<Interceptor>
networkInterceptors
private final CertificatePinner
certificatePinner
private final List<EventBaseConverter>
userEventFeedConverters
private final CustomErrorHandler
errorHandler
private final TaskAdapter
taskAdapter
private String
culture
private SSLSocketFactory
sslSocketFactory
private X509TrustManager
x509TrustManager
-
Method Summary
Modifier and Type Method Description void
updateCulture(String culture)
Only setter for the settings because culture can be updated after building the initial settings. List<Interceptor>
getHttpInterceptors()
HttpUrl
getEndpoint()
Returns the current endpoint used by the SDK. Authenticator
getAuthenticator()
Returns the authentication provider implementation used by the SDK. long
getTimeoutInSeconds()
Gets the OkHttp read and write timeout limit in ms PersistenceProvider
getPersistenceProvider()
Map<Service, SpecialServiceEndpointDefinition>
getSpecialServiceEndpoints()
Returns a map containing endpoints for specific service endpoints, e.g. List<Interceptor>
getNetworkInterceptors()
CertificatePinner
getCertificatePinner()
List<EventBaseConverter>
getUserEventFeedConverters()
Returns all user event feed converters in use. CustomErrorHandler
getErrorHandler()
Returns the current error handler used by the SDK. TaskAdapter
getTaskAdapter()
String
getCulture()
SSLSocketFactory
getSslSocketFactory()
Returns SSLSocketFactory for custom certificates; X509TrustManager
getX509TrustManager()
Returns x509TrustManager for custom certificates; -
-
Method Detail
-
updateCulture
void updateCulture(String culture)
Only setter for the settings because culture can be updated after building the initial settings.
- Parameters:
culture
- The new culture to use, in the form e.g.
-
getHttpInterceptors
List<Interceptor> getHttpInterceptors()
-
getEndpoint
HttpUrl getEndpoint()
Returns the current endpoint used by the SDK.
-
getAuthenticator
Authenticator getAuthenticator()
Returns the authentication provider implementation used by the SDK.
-
getTimeoutInSeconds
long getTimeoutInSeconds()
Gets the OkHttp read and write timeout limit in ms
-
getPersistenceProvider
PersistenceProvider getPersistenceProvider()
-
getSpecialServiceEndpoints
Map<Service, SpecialServiceEndpointDefinition> getSpecialServiceEndpoints()
Returns a map containing endpoints for specific service endpoints, e.g. if acertain feature needs to communicate with a different server than the rest of the modules
-
getNetworkInterceptors
List<Interceptor> getNetworkInterceptors()
-
getCertificatePinner
@Nullable() CertificatePinner getCertificatePinner()
-
getUserEventFeedConverters
List<EventBaseConverter> getUserEventFeedConverters()
Returns all user event feed converters in use.
-
getErrorHandler
CustomErrorHandler getErrorHandler()
Returns the current error handler used by the SDK.
-
getTaskAdapter
TaskAdapter getTaskAdapter()
-
getCulture
String getCulture()
-
getSslSocketFactory
SSLSocketFactory getSslSocketFactory()
Returns SSLSocketFactory for custom certificates;
-
getX509TrustManager
X509TrustManager getX509TrustManager()
Returns x509TrustManager for custom certificates;
-
-
-
-