- cachedResponseHeaders - 类 中的变量com.tencent.sonic.sdk.SonicServer
-
Cached response headers which contains response headers from server and custom response headers from
com.tencent.sonic.sdk.SonicSessionConfig
- cacheVerifyTime - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
The time that sonic begin verify local data
- callback(String) - 接口 中的方法com.tencent.sonic.sdk.SonicDiffDataCallback
-
Called when sonic processes the local data and the server data.
- canDestroy() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- CHROME_FILE_THREAD - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Name of chrome file thread
- cleanCache() - 类 中的方法com.tencent.sonic.sdk.SonicEngine
-
- clearHistory() - 类 中的方法com.tencent.sonic.sdk.SonicSessionClient
-
We add this method to decoupling webview since some application may use x5 webview or others.
- clearSessionData() - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
- clearSessionData() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- CLIENT_MSG_NOTIFY_RESULT - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
The message to record sonic mode.
- CLIENT_MSG_ON_WEB_READY - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
The message of page ready, its means page want to get the latest session data.
- clientIsReady - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
Whether the client is ready.
- clientIsReload - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
Indicate current session is reload or not.
- clientReady() - 类 中的方法com.tencent.sonic.sdk.SonicSessionClient
-
Notify client is ready to accept data
- close() - 类 中的方法com.tencent.sonic.sdk.SonicSessionStream
-
Closes this input stream and releases any system resources
associated with the stream and invoke the callback's onClose method
- com.tencent.sonic.sdk - 程序包 com.tencent.sonic.sdk
-
- com.tencent.sonic.sdk.download - 程序包 com.tencent.sonic.sdk.download
-
- COMMON_MSG_BEGIN - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
- COMMON_MSG_END - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
- config - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
- connect() - 类 中的方法com.tencent.sonic.sdk.SonicServer
-
Opens a communications link to the resource referenced by Sonic session.
- connect() - 类 中的方法com.tencent.sonic.sdk.SonicSessionConnection
-
Opens a communications link to the resource referenced by Sonic session
- connectionConnectTime - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
The http(s) connectURLConnection.connect()
response time
- connectionFlowFinishTime - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
Sonic flow end time
- connectionFlowStartTime - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
The time sonic initiate the http(s) request
- connectionImpl - 类 中的变量com.tencent.sonic.sdk.SonicServer
-
A session connection implement.
- connectionImpl - 类 中的变量com.tencent.sonic.sdk.SonicSessionConnection.SessionConnectionDefaultImpl
-
A default http connection referred to by the com.tencent.sonic.sdk.SonicSession#currUrl
.
- connectionRespondTime - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
The http(s) getResponseCodeHttpURLConnection.getResponseCode()
response time
- context - 类 中的变量com.tencent.sonic.sdk.SonicRuntime
-
A context for this runtime, it's expected to be ApplicationContext
- CREATE_TABLE_SQL - 类 中的静态变量com.tencent.sonic.sdk.SonicResourceDataHelper
-
The create table sql
- createConnection() - 类 中的方法com.tencent.sonic.sdk.SonicSessionConnection.SessionConnectionDefaultImpl
-
- createConnectionIntent(SonicDataHelper.SessionData) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- createdTime - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
The time of current session created.
- createInstance(SonicRuntime, SonicConfig) - 类 中的静态方法com.tencent.sonic.sdk.SonicEngine
-
Create SonicEngine instance.
- createSession(String, SonicSessionConfig) - 类 中的方法com.tencent.sonic.sdk.SonicEngine
-
- createWebResourceResponse(String, String, InputStream, Map<String, String>) - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
We add this method to decoupling webview since some application may use x5 webview or others.
- CUSTOM_HEAD_FILED_ACCEPT_DIFF - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP header:accept-diff.
- CUSTOM_HEAD_FILED_CACHE_OFFLINE - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP header:cache-offline.
- CUSTOM_HEAD_FILED_DNS_PREFETCH - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP Header:dns-prefetch.
- CUSTOM_HEAD_FILED_ETAG - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP header:eTag.
- CUSTOM_HEAD_FILED_HTML_SHA1 - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP header: .
- CUSTOM_HEAD_FILED_LINK - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP Response Header: Link.
- CUSTOM_HEAD_FILED_SDK_VERSION - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP Header:sdk_version.
- CUSTOM_HEAD_FILED_TEMPLATE_CHANGE - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP header:template_change.
- CUSTOM_HEAD_FILED_TEMPLATE_TAG - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP header:template_tag.
- getAllResourceDataColumn() - 类 中的静态方法com.tencent.sonic.sdk.SonicResourceDataHelper
-
- getCacheData(SonicSession) - 类 中的方法com.tencent.sonic.sdk.SonicCacheInterceptor
-
- getCacheHeaders() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Get header info from local cache headers
- getCharsetFromHeaders() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Get the charset from the latest response http header.
- getCharsetFromHeaders(Map<String, String>) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- getConfig() - 类 中的方法com.tencent.sonic.sdk.SonicEngine
-
- getConnection(SonicSession, Intent) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConnectionInterceptor
-
- getContext() - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
- getCookie(String) - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
Get cookies of the input url, this method will be called before sonic session make a
session connection to request data.
- getCurrentUrl() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- getCurrentUserAccount() - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
Get the current user account, this method will be called when makeSessionId's params is
account related.
- getDiffData(SonicDiffDataCallback) - 类 中的方法com.tencent.sonic.sdk.SonicSessionClient
-
The page execute a java script function to invoke a native method by javascript interface,
this callback will be called when sonic has finished diff data.
- getFileThreadLooper() - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
Return the looper of HandleThread which use to save sonic cache.
- getFilteredHeaders(Map<String, List<String>>) - 类 中的静态方法com.tencent.sonic.sdk.SonicUtils
-
Get filtered headers by session id, this method will return a map of header(k-v) which
will not contains "Set-Cookie", "Cache-Control", "Expires".
- getFinalResultCode() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- getHeaderFromLocalCache(String) - 类 中的静态方法com.tencent.sonic.sdk.SonicFileUtils
-
Get headers from local cache file
- getHeaders() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Get header info with the original url of current session.
- getHostDirectAddress(String) - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
Get the direct address of a url(host),format as[ip:port],the default http port is 80 and
443 for https.
- getInstance() - 类 中的静态方法com.tencent.sonic.sdk.SonicDBHelper
-
- getInstance() - 类 中的静态方法com.tencent.sonic.sdk.SonicEngine
-
- getMD5(String) - 类 中的静态方法com.tencent.sonic.sdk.SonicUtils
-
- getMime(String) - 类 中的静态方法com.tencent.sonic.sdk.SonicUtils
-
Get mime type for url simply.
- getQueryParameterNames(Uri) - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
Returns a set of the unique names of all query parameters.
- getResourceCache(String) - 类 中的方法com.tencent.sonic.sdk.download.SonicDownloadCache
-
get the cached content according to the url
- getResourceCache(String) - 类 中的方法com.tencent.sonic.sdk.download.SonicDownloadCache.SonicResourceCache
-
- getResourceCacheHeader(String) - 类 中的方法com.tencent.sonic.sdk.download.SonicDownloadCache
-
get the cached response headers according to the url
- getResourceCacheHeader(String) - 类 中的方法com.tencent.sonic.sdk.download.SonicDownloadCache.SonicResourceCache
-
- getResourceData(String) - 类 中的静态方法com.tencent.sonic.sdk.SonicResourceDataHelper
-
Get sonic ResourceData by unique resource id
- getResponseCode() - 类 中的方法com.tencent.sonic.sdk.SonicServer
-
- getResponseCode() - 类 中的方法com.tencent.sonic.sdk.SonicSessionConnection
-
- getResponseCode() - 类 中的方法com.tencent.sonic.sdk.SonicSessionConnection.SessionConnectionDefaultImpl
-
- getResponseData(boolean) - 类 中的方法com.tencent.sonic.sdk.SonicServer
-
Return current cached server response data.
- getResponseHeaderField(String) - 类 中的方法com.tencent.sonic.sdk.SonicServer
-
- getResponseHeaderField(String) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConnection
-
- getResponseHeaderField(String) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConnection.SessionConnectionDefaultImpl
-
- getResponseHeaderFields() - 类 中的方法com.tencent.sonic.sdk.SonicServer
-
return response headers which contains response headers from server and custom response headers from
com.tencent.sonic.sdk.SonicSessionConfig
note: server response headers have high priority than custom headers!
- getResponseHeaderFields() - 类 中的方法com.tencent.sonic.sdk.SonicSessionConnection
-
- getResponseHeaderFields() - 类 中的方法com.tencent.sonic.sdk.SonicSessionConnection.SessionConnectionDefaultImpl
-
- getResponseStream(AtomicBoolean) - 类 中的方法com.tencent.sonic.sdk.SonicServer
-
- getResponseStream() - 类 中的方法com.tencent.sonic.sdk.SonicSessionConnection
-
- getRuntime() - 类 中的方法com.tencent.sonic.sdk.SonicEngine
-
- getSessionClient() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- getSHA1(byte[]) - 类 中的静态方法com.tencent.sonic.sdk.SonicUtils
-
- getSonicCacheDir() - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
The sonic cache root dir which sonic cache such like .html/.template/.data will be storage.
- getSonicResourceCacheDir() - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
The resource cache root dir which resource cache will be storage.
- getSonicResourceHeaderPath(String) - 类 中的静态方法com.tencent.sonic.sdk.SonicFileUtils
-
- getSonicResourcePath(String) - 类 中的静态方法com.tencent.sonic.sdk.SonicFileUtils
-
- getSonicSessionConnection(SonicSession, Intent) - 类 中的静态方法com.tencent.sonic.sdk.SonicSessionConnectionInterceptor
-
- getSonicSharedPreferences() - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
get SharedPreferences of sonic.
- getSrcResultCode() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- getSrcResultCode() - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
- getStatistics() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- getSubResourceCache() - 类 中的静态方法com.tencent.sonic.sdk.download.SonicDownloadCache
-
- getTemplate() - 类 中的方法com.tencent.sonic.sdk.SonicServer
-
If the serverRsp is not empty, It will separate serverRsp into template and data file and return template as string.
- getUpdatedData() - 类 中的方法com.tencent.sonic.sdk.SonicServer
-
If the serverRsp is not empty, It will separate serverRsp into template and data file and return data as JSONObject String.
- getUserAgent() - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
Get user agent of current runtime, this method will be called before sonic session make a
session connection to request data.
- handleFlow_Connection(boolean, SonicDataHelper.SessionData) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Initiate a network request to obtain server data.
- handleFlow_DataUpdate(String) - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
In this case sonic obtains the difference data between the server and the local
data first,then sonic will build the template and server data into html,
then send a CLIENT_CORE_MSG_DATA_UPDATE
message.
- handleFlow_DataUpdate(String) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- handleFlow_DataUpdate(String) - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
Sonic obtains the difference data between the server and the local data first,then sonic will
build the template and server data into html.If client did not load url before, the new html
will be encapsulated as an inputStreamByteArrayInputStream
,When client initiates
a resource interception, sonic provides the inputStream to the kernel.
- handleFlow_FirstLoad() - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
In this case sonic will always read the new data from the server until the client
initiates a resource interception.
- handleFlow_FirstLoad() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- handleFlow_FirstLoad() - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
Sonic will always read the new data from the server until client initiates a resource interception
If the server data is not read finished sonic will split the read and unread data into a
bridgedStream
SonicSessionStream
, otherwise all the read data will be encapsulated as an
inputStream
ByteArrayInputStream
.
- handleFlow_HttpError(int) - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
- handleFlow_HttpError(int) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- handleFlow_HttpError(int) - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
- handleFlow_LoadLocalCache(String) - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
Handle load local cache of html if exist.
- handleFlow_LoadLocalCache(String) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- handleFlow_LoadLocalCache(String) - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
- handleFlow_NotModified() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- handleFlow_ServiceUnavailable() - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
- handleFlow_ServiceUnavailable() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- handleFlow_ServiceUnavailable() - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
- handleFlow_TemplateChange(String) - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
In this case sonic will always read the new data from the server until the local page finish.
- handleFlow_TemplateChange(String) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- handleFlow_TemplateChange(String) - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
Sonic will always read the new data from the server until the local page finish.
- handleMessage(Message) - 类 中的方法com.tencent.sonic.sdk.download.SonicDownloadEngine
-
- handleMessage(Message) - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
- handleMessage(Message) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Subclasses must implement this to receive messages.
- handleMessage(Message) - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
- HTTP_HEAD_CSP - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP Header:Content-Security-Policy.
- HTTP_HEAD_CSP_REPORT_ONLY - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP Header:Content-Security-Policy-Report-Only.
- HTTP_HEAD_FIELD_CACHE_CONTROL - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP Header : Cache-Control.
- HTTP_HEAD_FIELD_CONTENT_LENGTH - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP Header : Content-Length.
- HTTP_HEAD_FIELD_CONTENT_TYPE - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP Header : Content-Type.
- HTTP_HEAD_FIELD_COOKIE - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP Request Header : Cookie.
- HTTP_HEAD_FIELD_EXPIRES - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP Header : Expires.
- HTTP_HEAD_FIELD_PRAGMA - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP 1.0 Header : Pragma.
- HTTP_HEAD_FILED_IF_NOT_MATCH - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
- HTTP_HEAD_FILED_SET_COOKIE - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP Header:Set-Cookie.
- HTTP_HEAD_FILED_USER_AGENT - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP Request Header:User-Agent.
- OFFLINE_MODE_FALSE - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
The value of "cache-offline" in http(s) response headers.
- OFFLINE_MODE_HTTP - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
The value of "cache-offline" in http(s) response headers.
- OFFLINE_MODE_STORE - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
The value of "cache-offline" in http(s) response headers.
- OFFLINE_MODE_TRUE - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
The value of "cache-offline" in http(s) response headers.
- onClientPageFinished(String) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- onClientReady() - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
- onClientReady() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Client informs sonic that it is ready.
- onClientReady() - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
- onClientRequestResource(String) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
When the webview initiates a resource interception, the client invokes the method to retrieve the data
- onClose(boolean, ByteArrayOutputStream) - 类 中的方法com.tencent.sonic.sdk.download.SonicDownloadClient
-
- onClose(boolean, ByteArrayOutputStream) - 类 中的方法com.tencent.sonic.sdk.SonicServer
-
- onClose(boolean, ByteArrayOutputStream) - 接口 中的方法com.tencent.sonic.sdk.SonicSessionStream.Callback
-
Close callback
- onCreate(SQLiteDatabase) - 类 中的方法com.tencent.sonic.sdk.SonicDBHelper
-
Called when the database is created for the first time.
- onError(int) - 接口 中的方法com.tencent.sonic.sdk.download.SonicDownloadCallback
-
notify download failed.
- onError(int) - 类 中的方法com.tencent.sonic.sdk.download.SonicDownloadCallback.SimpleDownloadCallback
-
- onError(int) - 类 中的方法com.tencent.sonic.sdk.download.SonicDownloadClient.SubResourceDownloadCallback
-
- onFinish() - 接口 中的方法com.tencent.sonic.sdk.download.SonicDownloadCallback
-
notify download finish.
- onFinish() - 类 中的方法com.tencent.sonic.sdk.download.SonicDownloadCallback.SimpleDownloadCallback
-
- onProgress(int, int) - 接口 中的方法com.tencent.sonic.sdk.download.SonicDownloadCallback
-
notify the download progress.
- onProgress(int, int) - 类 中的方法com.tencent.sonic.sdk.download.SonicDownloadCallback.SimpleDownloadCallback
-
- onRequestResource(String) - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
- onRequestResource(String) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
When the webview initiates a main resource interception, the client invokes this method to retrieve the data
- onRequestResource(String) - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
- onRequestSubResource(String, SonicSession) - 类 中的方法com.tencent.sonic.sdk.download.SonicDownloadEngine
-
When the webview initiates a sub resource interception, the client invokes this method to retrieve the data
- onServerClosed(SonicServer, boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
If the kernel obtain inputStream from a SonicSessionStream
, the inputStream
will be closed when the kernel reads the data.This method is invoked when the sonicSessionStream
close.
- onSessionStateChange(SonicSession, int, int, Bundle) - 接口 中的方法com.tencent.sonic.sdk.SonicSession.Callback
-
When the session's state changes, this method will be invoked.
- onStart() - 接口 中的方法com.tencent.sonic.sdk.download.SonicDownloadCallback
-
notify the download start.
- onStart() - 类 中的方法com.tencent.sonic.sdk.download.SonicDownloadCallback.SimpleDownloadCallback
-
- onStart() - 类 中的方法com.tencent.sonic.sdk.download.SonicDownloadClient.SubResourceDownloadCallback
-
- onSuccess(byte[], Map<String, List<String>>) - 接口 中的方法com.tencent.sonic.sdk.download.SonicDownloadCallback
-
notify download success.
- onSuccess(byte[], Map<String, List<String>>) - 类 中的方法com.tencent.sonic.sdk.download.SonicDownloadCallback.SimpleDownloadCallback
-
- onSuccess(byte[], Map<String, List<String>>) - 类 中的方法com.tencent.sonic.sdk.download.SonicDownloadClient.SubResourceDownloadCallback
-
- onUpgrade(SQLiteDatabase, int, int) - 类 中的方法com.tencent.sonic.sdk.SonicDBHelper
-
- onWebReady(SonicDiffDataCallback) - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
- onWebReady(SonicDiffDataCallback) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Client will call this method to obtain the update data when the page shows the content.
- onWebReady(SonicDiffDataCallback) - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
- originalMode - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
- read() - 类 中的方法com.tencent.sonic.sdk.SonicSessionStream
-
Reads a single byte from this stream and returns it as an integer in the
range from 0 to 255.
- read(byte[]) - 类 中的方法com.tencent.sonic.sdk.SonicSessionStream
-
Reads a byte of data from this input stream
Equivalent to read(buffer, 0, buffer.length)
.
- read(byte[], int, int) - 类 中的方法com.tencent.sonic.sdk.SonicSessionStream
-
Reads up to byteCount
bytes from this stream and stores them in
the byte array buffer
starting at byteOffset
.
- readFileToBytes(File) - 类 中的静态方法com.tencent.sonic.sdk.SonicFileUtils
-
- refresh() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- removeResourceCache(String) - 类 中的静态方法com.tencent.sonic.sdk.SonicUtils
-
Remove a unique resource cache.
- removeSessionCache(String) - 类 中的方法com.tencent.sonic.sdk.SonicEngine
-
- removeSessionCallback(SonicSessionCallback) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- removeSessionStateChangedCallback(SonicSession.Callback) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- requestIntent - 类 中的变量com.tencent.sonic.sdk.SonicServer
-
- requestResource(String) - 类 中的方法com.tencent.sonic.sdk.SonicSessionClient
-
Webview ask the host client to intercept request, this method should be called when webview
call shouldInterceptRequest.
- reset() - 类 中的方法com.tencent.sonic.sdk.SonicResourceDataHelper.ResourceData
-
Reset data
- RESOURCE_INTERCEPT_STATE_IN_FILE_THREAD - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Resource Intercept State : intercepting in file thread
- RESOURCE_INTERCEPT_STATE_IN_OTHER_THREAD - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Resource Intercept State : intercepting in other thread(may be IOThread or other else)
- RESOURCE_INTERCEPT_STATE_NONE - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Resource Intercept State : none
- ResourceData() - 类 的构造器com.tencent.sonic.sdk.SonicResourceDataHelper.ResourceData
-
- resourceDownloaderEngine - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
Sonic sub resource downloader
- resourceInterceptState - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
Resource intercept state, include RESOURCE_INTERCEPT_STATE_NONE
,
RESOURCE_INTERCEPT_STATE_IN_FILE_THREAD
,
RESOURCE_INTERCEPT_STATE_IN_OTHER_THREAD
More about it at {https://codereview.chromium.org/1350553005/#ps20001}
- resourceSha1 - 类 中的变量com.tencent.sonic.sdk.SonicResourceDataHelper.ResourceData
-
The sha1 of resource
- resourceSize - 类 中的变量com.tencent.sonic.sdk.SonicResourceDataHelper.ResourceData
-
The size of resource
- responseCode - 类 中的变量com.tencent.sonic.sdk.SonicServer
-
- responseStream - 类 中的变量com.tencent.sonic.sdk.SonicSessionConnection
-
The input stream that reads from this open connection.
- saveResourceFiles(String, byte[], Map<String, List<String>>) - 类 中的静态方法com.tencent.sonic.sdk.SonicUtils
-
save resource files, including resource and headers.
- saveSonicResourceData(String, String, long) - 类 中的静态方法com.tencent.sonic.sdk.SonicUtils
-
save resource data to database, such as resource sha1, resource size etc.
- separateTemplateAndData() - 类 中的方法com.tencent.sonic.sdk.SonicServer
-
- server - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
Sonic server
- serverRsp - 类 中的变量com.tencent.sonic.sdk.SonicServer
-
- session - 类 中的变量com.tencent.sonic.sdk.SonicServer
-
- session - 类 中的变量com.tencent.sonic.sdk.SonicSessionConnection
-
SonicSession Object used by SonicSessionConnection.
- SESSION_MODE_DEFAULT - 类 中的静态变量com.tencent.sonic.sdk.SonicConstants
-
SonicSession mode : StandardSonicSession
- SESSION_MODE_QUICK - 类 中的静态变量com.tencent.sonic.sdk.SonicConstants
-
SonicSession mode : QuickSonicSession
- SESSION_MSG_FORCE_DESTROY - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
The message of forced to destroy the session.
- sessionCallbackList - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
- sessionClient - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
- SessionConnectionDefaultImpl(SonicSession, Intent) - 类 的构造器com.tencent.sonic.sdk.SonicSessionConnection.SessionConnectionDefaultImpl
-
- sessionState - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
Session state, include STATE_NONE
, STATE_RUNNING
,
STATE_READY
and STATE_DESTROY
.
- setAcceptDiff(boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setAutoInitDBWhenCreate(boolean) - 类 中的方法com.tencent.sonic.sdk.SonicConfig.Builder
-
- setAutoStartWhenCreate(boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setCacheCheckTimeInterval(long) - 类 中的方法com.tencent.sonic.sdk.SonicConfig.Builder
-
- setCacheInterceptor(SonicCacheInterceptor) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setCacheMaxSize(long) - 类 中的方法com.tencent.sonic.sdk.SonicConfig.Builder
-
- setCacheVerifyWithSha1(boolean) - 类 中的方法com.tencent.sonic.sdk.SonicConfig.Builder
-
- setConnectionInterceptor(SonicSessionConnectionInterceptor) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setConnectTimeoutMillis(int) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setCookie(String, List<String>) - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
Set cookies to webview after session connection response with cookies in it's headers.
- setCookiesFromHeaders(Map<String, List<String>>, boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Set cookies to webview from headers
- setCustomRequestHeaders(Map<String, String>) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setCustomResponseHeaders(Map<String, String>) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setGetCookieWhenSessionCreate(boolean) - 类 中的方法com.tencent.sonic.sdk.SonicConfig.Builder
-
- setIsAccountRelated(boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setMaxNumOfDownloadingTasks(int) - 类 中的方法com.tencent.sonic.sdk.SonicConfig.Builder
-
- setMaxPreloadSessionCount(int) - 类 中的方法com.tencent.sonic.sdk.SonicConfig.Builder
-
- setPreloadSessionExpiredTimeMillis(long) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setReadBufferSize(int) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setReadTimeoutMillis(int) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setReloadInBadNetwork(boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setResourceCacheMaxSize(long) - 类 中的方法com.tencent.sonic.sdk.SonicConfig.Builder
-
- setResult(int, int, boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Record the sonic mode, notify the result to page if necessary.
- setSessionMode(int) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setSonicCacheMaxAge(int) - 类 中的方法com.tencent.sonic.sdk.SonicConfig.Builder
-
- setSupportCacheControl(boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setSupportLocalServer(boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setUnavailableTime(long) - 类 中的方法com.tencent.sonic.sdk.SonicConfig.Builder
-
- setUseSonicCacheInBadNetworkToastMessage(String) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- shouldLog(int) - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
Logger function
- shouldLog(int) - 类 中的静态方法com.tencent.sonic.sdk.SonicUtils
-
Logger function
- shouldSetCookieAsynchronous() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Whether should set cookie asynchronous or not , if onClientRequestResource
is calling
in IOThread, it should not call set cookie synchronous which will handle in IOThread as it may
cause deadlock
More about it see {https://issuetracker.google.com/issues/36989494#c8}
Fix VasSonic issue {https://github.com/Tencent/VasSonic/issues/90}
- showToast(CharSequence, int) - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
Show toast
- sId - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
The integer id of current session
- SimpleDownloadCallback() - 类 的构造器com.tencent.sonic.sdk.download.SonicDownloadCallback.SimpleDownloadCallback
-
- sNextSessionLogId - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Log id
- SONIC_MAX_NUM_OF_DOWNLOADING_TASK - 类 中的变量com.tencent.sonic.sdk.SonicConfig
-
The max number of tasks which is downloading in the same time.
- SONIC_PARAMETER_NAME_PREFIX - 类 中的静态变量com.tencent.sonic.sdk.SonicConstants
-
Sonic parameter prefix
- SONIC_REMAIN_PARAMETER_NAMES - 类 中的静态变量com.tencent.sonic.sdk.SonicConstants
-
This parameter in url will be as part of session id,and it is separated by SONIC_REMAIN_PARAMETER_SPLIT_CHAR.
- SONIC_REMAIN_PARAMETER_SPLIT_CHAR - 类 中的静态变量com.tencent.sonic.sdk.SonicConstants
-
- SONIC_RESULT_CODE_DATA_UPDATE - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Sonic mode : data update.
- SONIC_RESULT_CODE_FIRST_LOAD - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Sonic mode : first load.
- SONIC_RESULT_CODE_HIT_CACHE - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Sonic mode : 304.
- SONIC_RESULT_CODE_TEMPLATE_CHANGE - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Sonic mode : template change.
- SONIC_RESULT_CODE_UNKNOWN - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Sonic mode : unknown.
- SONIC_SDK_LOG_PREFIX - 类 中的静态变量com.tencent.sonic.sdk.SonicConstants
-
SonicSDK log prefix
- SONIC_VERSION_NUM - 类 中的静态变量com.tencent.sonic.sdk.SonicConstants
-
SonicSDK version
- SonicCacheInterceptor - com.tencent.sonic.sdk中的类
-
SonicCacheInterceptor
provide local data.
- SonicCacheInterceptor(SonicCacheInterceptor) - 类 的构造器com.tencent.sonic.sdk.SonicCacheInterceptor
-
- SonicConfig - com.tencent.sonic.sdk中的类
-
Sonic global config
- SonicConfig.Builder - com.tencent.sonic.sdk中的类
-
Builder for SonicConfig
- SonicConstants - com.tencent.sonic.sdk中的类
-
Sonic constants
- SonicConstants() - 类 的构造器com.tencent.sonic.sdk.SonicConstants
-
- SonicDBHelper - com.tencent.sonic.sdk中的类
-
SonicDBHelper interacts with the database, such as managing database creation and
the version management.
- SonicDiffDataCallback - com.tencent.sonic.sdk中的接口
-
This interface is used to call the difference data between local and server data
to the client.
- SonicDownloadCache - com.tencent.sonic.sdk.download中的类
-
Sonic download cache manager
- SonicDownloadCache() - 类 的构造器com.tencent.sonic.sdk.download.SonicDownloadCache
-
- SonicDownloadCache.SonicResourceCache - com.tencent.sonic.sdk.download中的类
-
- SonicDownloadCallback - com.tencent.sonic.sdk.download中的接口
-
download callback.
- SonicDownloadCallback.SimpleDownloadCallback - com.tencent.sonic.sdk.download中的类
-
- SonicDownloadClient - com.tencent.sonic.sdk.download中的类
-
Handles a single HTTP resource download
- SonicDownloadClient(SonicDownloadClient.DownloadTask) - 类 的构造器com.tencent.sonic.sdk.download.SonicDownloadClient
-
- SonicDownloadClient.DownloadTask - com.tencent.sonic.sdk.download中的类
-
Task which record the download info
- SonicDownloadClient.SonicDownloadConnection - com.tencent.sonic.sdk.download中的类
-
- SonicDownloadClient.SubResourceDownloadCallback - com.tencent.sonic.sdk.download中的类
-
sub resource download callback.
- SonicDownloadConnection(String) - 类 的构造器com.tencent.sonic.sdk.download.SonicDownloadClient.SonicDownloadConnection
-
- SonicDownloadEngine - com.tencent.sonic.sdk.download中的类
-
an download initiator
- SonicDownloadEngine(SonicDownloadCache) - 类 的构造器com.tencent.sonic.sdk.download.SonicDownloadEngine
-
- SonicEngine - com.tencent.sonic.sdk中的类
-
Interacts with the overall SonicSessions running in the system.
- SonicFileUtils - com.tencent.sonic.sdk中的类
-
Interact with the overall file operations.
- SonicFileUtils() - 类 的构造器com.tencent.sonic.sdk.SonicFileUtils
-
- sonicFlowStartTime - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
- SonicResourceCache() - 类 的构造器com.tencent.sonic.sdk.download.SonicDownloadCache.SonicResourceCache
-
- SonicResourceDataHelper - com.tencent.sonic.sdk中的类
-
SonicResourceDataHelper manages the resource database.
- SonicResourceDataHelper() - 类 的构造器com.tencent.sonic.sdk.SonicResourceDataHelper
-
- SonicResourceDataHelper.ResourceData - com.tencent.sonic.sdk中的类
-
resource data structure
- SonicRuntime - com.tencent.sonic.sdk中的类
-
SonicRuntime
is a class which interacts with the overall running information in the system,
including Context, UA, ID (which is the unique identification for the saved data) and other information.
- SonicRuntime(Context) - 类 的构造器com.tencent.sonic.sdk.SonicRuntime
-
- SonicServer - com.tencent.sonic.sdk中的类
-
Instances of this class can be used to read server response from SonicSessionConnection.
- SonicServer(SonicSession, Intent) - 类 的构造器com.tencent.sonic.sdk.SonicServer
-
- SonicSession - com.tencent.sonic.sdk中的类
-
In Sonic, SonicSession
s are used to manage the entire process,include
obtain the latest data from the server, provide local and latest
data to kernel, separate html to template and data, build template
and data to html and so on.
- SonicSession.Callback - com.tencent.sonic.sdk中的接口
-
The interface is used to inform the listeners that the state of the
session has changed.
- SonicSessionClient - com.tencent.sonic.sdk中的类
-
SonicSessionClient
is a thin API class that delegates its public API to
a backend WebView class instance, such as loadUrl and loadDataWithBaseUrl.
- SonicSessionClient() - 类 的构造器com.tencent.sonic.sdk.SonicSessionClient
-
- SonicSessionConfig - com.tencent.sonic.sdk中的类
-
The sonicSession configurations.
- SonicSessionConfig.Builder - com.tencent.sonic.sdk中的类
-
Builder for SonicSessionConfig
- SonicSessionConnection - com.tencent.sonic.sdk中的类
-
The abstract class SonicSessionConnection
is the superclass
of all classes that represent a communications link between the
application and a URL.
- SonicSessionConnection(SonicSession, Intent) - 类 的构造器com.tencent.sonic.sdk.SonicSessionConnection
-
Constructor
- SonicSessionConnection.SessionConnectionDefaultImpl - com.tencent.sonic.sdk中的类
-
- SonicSessionConnectionInterceptor - com.tencent.sonic.sdk中的类
-
SonicSessionConnectionInterceptor
provide a SonicSessionConnection
.
- SonicSessionConnectionInterceptor() - 类 的构造器com.tencent.sonic.sdk.SonicSessionConnectionInterceptor
-
- SonicSessionStatistics - com.tencent.sonic.sdk中的类
-
The Statistic model specifies the data models which are required to be used to provide
the performance data described by the specific attributes in a SonicSession.
- SonicSessionStatistics() - 类 的构造器com.tencent.sonic.sdk.SonicSessionStatistics
-
- SonicSessionStream - com.tencent.sonic.sdk中的类
-
A SonicSessionStream
obtains input bytes
from a memStream
and a netStream
.
- SonicSessionStream(SonicSessionStream.Callback, ByteArrayOutputStream, BufferedInputStream) - 类 的构造器com.tencent.sonic.sdk.SonicSessionStream
-
Constructor
- SonicSessionStream.Callback - com.tencent.sonic.sdk中的接口
-
When SonicSessionStream
close the stream will invoke the Callback
- sonicStartTime - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
- SonicUtils - com.tencent.sonic.sdk中的类
-
Sonic Utils
- SonicUtils() - 类 的构造器com.tencent.sonic.sdk.SonicUtils
-
- srcResultCode - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
Sonic original mode.
- srcUrl - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
The original url
- srcUrl - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
Original url
- StandardSonicSession - com.tencent.sonic.sdk中的类
-
A subclass of SonicSession.
- start() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Start the sonic process
- STATE_DESTROY - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Session state : destroyed.
- STATE_DOWNLOADED - 类 中的静态变量com.tencent.sonic.sdk.download.SonicDownloadClient.DownloadTask
-
the task is in download complete state.
- STATE_DOWNLOADING - 类 中的静态变量com.tencent.sonic.sdk.download.SonicDownloadClient.DownloadTask
-
the task is in downloading state.
- STATE_INITIATE - 类 中的静态变量com.tencent.sonic.sdk.download.SonicDownloadClient.DownloadTask
-
download in initiate state.
- STATE_LOAD_FROM_CACHE - 类 中的静态变量com.tencent.sonic.sdk.download.SonicDownloadClient.DownloadTask
-
the task is load from cache, not from network.
- STATE_NONE - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Session state : original.
- STATE_QUEUEING - 类 中的静态变量com.tencent.sonic.sdk.download.SonicDownloadClient.DownloadTask
-
download in queueing state.
- STATE_READY - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Session state : ready.
- STATE_RUNNING - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Session state : running.
- stateChangedCallbackList - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
- statistics - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
Session statics var
- SubResourceDownloadCallback(String) - 类 的构造器com.tencent.sonic.sdk.download.SonicDownloadClient.SubResourceDownloadCallback
-
- switchState(int, int, boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-