public static final class BaasBox.Config
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BaasBox.Config.AuthType
The supported authentication types.
|
Modifier and Type | Field and Description |
---|---|
java.lang.String |
apiBasepath
The relative path of the server, default is
/ . |
java.lang.String |
apiDomain
The domain name of the server, default is
"10.0.2.2 -refers to the localhost from emulator. |
java.lang.String |
appCode
The BaasBox app code, default is
1234567890 . |
BaasBox.Config.AuthType |
authenticationType
The authentication type used by the SDK, default is
SESSION_TOKEN . |
ExceptionHandler |
exceptionHandler |
java.lang.String |
httpCharset
The charset used for the HTTP connection, default is
UTF-8 . |
int |
httpConnectionTimeout
Sets the timeout until a connection is established.
|
int |
httpPort
The port number of the server connection, default is
9000 . |
int |
httpSocketTimeout
Sets the default socket timeout (SO_TIMEOUT) in milliseconds which is the
timeout for waiting for data.
|
int |
keystoreRes |
java.lang.String |
password |
java.lang.String[] |
senderIds
GCM SenderIds to use for notifications
|
boolean |
sessionTokenExpires
True if session tokens are not auto refreshed upon expiration
|
boolean |
useHttps
if
true the SDK use HTTPs protocol. |
int |
workerThreads
Number of threads to use for asynchronous requests.
|
public final ExceptionHandler exceptionHandler
public final java.lang.String password
public final int keystoreRes
public final boolean useHttps
true
the SDK use HTTPs protocol. Default is
false
.public final java.lang.String httpCharset
UTF-8
.public final int httpPort
9000
.public final int httpConnectionTimeout
public final int httpSocketTimeout
public final java.lang.String apiDomain
"10.0.2.2
-refers to the localhost from emulator.public final java.lang.String apiBasepath
/
.public final java.lang.String appCode
1234567890
.public final BaasBox.Config.AuthType authenticationType
SESSION_TOKEN
.public final int workerThreads
0
it uses a computed default value.public final boolean sessionTokenExpires
public final java.lang.String[] senderIds