public static class SonicSessionConnection.SessionConnectionDefaultImpl extends SonicSessionConnection
SonicSessionConnection.SessionConnectionDefaultImpl| 限定符和类型 | 字段和说明 |
|---|---|
protected java.net.URLConnection |
connectionImpl
A default http connection referred to by the
com.tencent.sonic.sdk.SonicSession#currUrl. |
CUSTOM_HEAD_FILED_ACCEPT_DIFF, CUSTOM_HEAD_FILED_CACHE_OFFLINE, CUSTOM_HEAD_FILED_DNS_PREFETCH, CUSTOM_HEAD_FILED_ETAG, CUSTOM_HEAD_FILED_HTML_SHA1, CUSTOM_HEAD_FILED_LINK, CUSTOM_HEAD_FILED_SDK_VERSION, CUSTOM_HEAD_FILED_SONIC_ETAG_KEY, CUSTOM_HEAD_FILED_TEMPLATE_CHANGE, CUSTOM_HEAD_FILED_TEMPLATE_TAG, DNS_PREFETCH_ADDRESS, HTTP_HEAD_CSP, HTTP_HEAD_CSP_REPORT_ONLY, HTTP_HEAD_FIELD_CACHE_CONTROL, HTTP_HEAD_FIELD_CONTENT_LENGTH, HTTP_HEAD_FIELD_CONTENT_TYPE, HTTP_HEAD_FIELD_COOKIE, HTTP_HEAD_FIELD_EXPIRES, HTTP_HEAD_FIELD_PRAGMA, HTTP_HEAD_FILED_IF_NOT_MATCH, HTTP_HEAD_FILED_SET_COOKIE, HTTP_HEAD_FILED_USER_AGENT, intent, mCustomHeadFieldEtagKey, responseStream, session| 构造器和说明 |
|---|
SessionConnectionDefaultImpl(SonicSession session,
android.content.Intent intent) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected java.net.URLConnection |
createConnection() |
void |
disconnect()
Disconnect the communications link to the resource referenced by Sonic session
|
int |
getResponseCode() |
java.lang.String |
getResponseHeaderField(java.lang.String key) |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getResponseHeaderFields() |
protected boolean |
initConnection(java.net.URLConnection connection) |
protected int |
internalConnect() |
protected java.lang.String |
internalGetCustomHeadFieldEtag() |
protected java.io.BufferedInputStream |
internalGetResponseStream() |
connect, getCustomHeadFieldEtagKey, getResponseStreamprotected final java.net.URLConnection connectionImpl
com.tencent.sonic.sdk.SonicSession#currUrl.public SessionConnectionDefaultImpl(SonicSession session, android.content.Intent intent)
protected java.net.URLConnection createConnection()
protected boolean initConnection(java.net.URLConnection connection)
protected int internalConnect()
internalConnect 在类中 SonicSessionConnectionpublic void disconnect()
SonicSessionConnectiondisconnect 在类中 SonicSessionConnectionprotected java.io.BufferedInputStream internalGetResponseStream()
public int getResponseCode()
getResponseCode 在类中 SonicSessionConnectionpublic java.util.Map<java.lang.String,java.util.List<java.lang.String>> getResponseHeaderFields()
public java.lang.String getResponseHeaderField(java.lang.String key)
getResponseHeaderField 在类中 SonicSessionConnectionkey - the name of a header field.protected java.lang.String internalGetCustomHeadFieldEtag()