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_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, 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.io.BufferedInputStream |
internalGetResponseStream() |
connect, getResponseStream
protected 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
在类中 SonicSessionConnection
public void disconnect()
SonicSessionConnection
disconnect
在类中 SonicSessionConnection
protected java.io.BufferedInputStream internalGetResponseStream()
public int getResponseCode()
getResponseCode
在类中 SonicSessionConnection
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getResponseHeaderFields()
public java.lang.String getResponseHeaderField(java.lang.String key)
getResponseHeaderField
在类中 SonicSessionConnection
key
- the name of a header field.