|
| void | logError (String what, String url, long start) |
| |
|
| static final boolean | DEBUG = VolleyLog.DEBUG |
| |
|
| void | logSlowRequests (long requestLifetime, Request<?> request, byte[] responseContents, StatusLine statusLine) |
| |
| void | addCacheHeaders (Map< String, String > headers, Cache.Entry entry) |
| |
| byte[] | entityToBytes (HttpEntity entity) throws IOException, ServerError |
| |
A network performing Volley requests over an HttpStack.
| com.ab.network.toolbox.BasicNetwork.BasicNetwork |
( |
HttpStack |
httpStack | ) |
|
|
inline |
- 参数
-
| httpStack | HTTP stack to be used |
- 参数
-
| httpStack | HTTP stack to be used |
| pool | a buffer pool that improves GC performance in copy operations |
| void com.ab.network.toolbox.BasicNetwork.addCacheHeaders |
( |
Map< String, String > |
headers, |
|
|
Cache.Entry |
entry |
|
) |
| |
|
inlineprivate |
| static void com.ab.network.toolbox.BasicNetwork.attemptRetryOnException |
( |
String |
logPrefix, |
|
|
Request<?> |
request, |
|
|
VolleyError |
exception |
|
) |
| throws VolleyError |
|
inlinestaticprivate |
Attempts to prepare the request for a retry. If there are no more attempts remaining in the request's retry policy, a timeout exception is thrown.
- 参数
-
| request | The request to use. |
| static Map<String, String> com.ab.network.toolbox.BasicNetwork.convertHeaders |
( |
Header[] |
headers | ) |
|
|
inlinestaticprivate |
Converts Headers[] to Map<String, String>.
| byte [] com.ab.network.toolbox.BasicNetwork.entityToBytes |
( |
HttpEntity |
entity | ) |
throws IOException, ServerError |
|
inlineprivate |
Reads the contents of HttpEntity into a byte[].
| void com.ab.network.toolbox.BasicNetwork.logError |
( |
String |
what, |
|
|
String |
url, |
|
|
long |
start |
|
) |
| |
|
inlineprotected |
| void com.ab.network.toolbox.BasicNetwork.logSlowRequests |
( |
long |
requestLifetime, |
|
|
Request<?> |
request, |
|
|
byte[] |
responseContents, |
|
|
StatusLine |
statusLine |
|
) |
| |
|
inlineprivate |
Logs requests that took over SLOW_REQUEST_THRESHOLD_MS to complete.
| NetworkResponse com.ab.network.toolbox.BasicNetwork.performRequest |
( |
Request<?> |
request | ) |
throws VolleyError |
|
inline |
| final boolean com.ab.network.toolbox.BasicNetwork.DEBUG = VolleyLog.DEBUG |
|
staticprotected |
| int com.ab.network.toolbox.BasicNetwork.DEFAULT_POOL_SIZE = 4096 |
|
staticprivate |
| final HttpStack com.ab.network.toolbox.BasicNetwork.mHttpStack |
|
protected |
| int com.ab.network.toolbox.BasicNetwork.SLOW_REQUEST_THRESHOLD_MS = 3000 |
|
staticprivate |
该类的文档由以下文件生成: