public static class IoTAPIClientImpl.InitializeConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
IoTHttpClientAdapter |
adapter
请参见
IoTHttpClientAdapter
可为空 |
Env |
apiEnv
暂时仅支持
Env.RELEASE |
java.lang.String |
appKey
Deprecated.
|
java.lang.String |
authCode
安全图片的 authCode
可为空,线上仅支持 "114d"
|
long |
connectTimeout
连接超时时间(ms) connectTimeout<=
IoTHttpClientAdapterConfig#DEFAULT_TIMEOUT |
EventListener |
eventListener
网络请求事件,如dns解析,连接,ssl握手,写入请求等
|
java.lang.String |
host
默认 host 地址
不可为空, 请设置为 IoT 官方服务的 host 地址
|
boolean |
isDebug
是否debug版本,防中间人攻击
|
boolean |
isHttpConnectionRetry
失败重试, 默认为true
|
long |
readTimeout
读取超时时间(ms) readTimeout<=
IoTHttpClientAdapterConfig#DEFAULT_TIMEOUT |
javax.net.SocketFactory |
socketFactory
设置SocketFactory
|
long |
writeTimeout
写入超时时间(ms) writeTimeout<=
IoTHttpClientAdapterConfig#DEFAULT_TIMEOUT |
Constructor and Description |
---|
InitializeConfig() |
public IoTHttpClientAdapter adapter
IoTHttpClientAdapter
可为空public java.lang.String host
public Env apiEnv
Env.RELEASE
@Deprecated public java.lang.String appKey
public java.lang.String authCode
public long connectTimeout
IoTHttpClientAdapterConfig#DEFAULT_TIMEOUT
public long readTimeout
IoTHttpClientAdapterConfig#DEFAULT_TIMEOUT
public long writeTimeout
IoTHttpClientAdapterConfig#DEFAULT_TIMEOUT
public javax.net.SocketFactory socketFactory
public EventListener eventListener
public boolean isHttpConnectionRetry
public boolean isDebug