public static class SonicSessionConnection.SessionConnectionDefaultImpl extends SonicSessionConnection
SonicSessionConnection.ResponseDataTuple, SonicSessionConnection.SessionConnectionDefaultImpl
CUSTOM_HEAD_FILED_CACHE_OFFLINE, CUSTOM_HEAD_FILED_DNS_PREFETCH, CUSTOM_HEAD_FILED_ETAG, CUSTOM_HEAD_FILED_TEMPLATE_CHANGE, CUSTOM_HEAD_FILED_TEMPLATE_TAG, DNS_PREFETCH_ADDRESS, HTTP_HEAD_CSP, HTTP_HEAD_CSP_REPORT_ONLY, intent, responseStream, session
构造器和说明 |
---|
SessionConnectionDefaultImpl(SonicSession session,
android.content.Intent intent) |
限定符和类型 | 方法和说明 |
---|---|
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 int |
internalConnect() |
protected java.io.BufferedInputStream |
internalGetResponseStream() |
connect, getResponseData, getResponseData, getResponseStream
public SessionConnectionDefaultImpl(SonicSession session, android.content.Intent intent)
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.