Modifier and Type | Field and Description |
---|---|
protected static boolean |
DEBUG |
protected HttpStack |
mHttpStack |
protected ByteArrayPool |
mPool |
Constructor and Description |
---|
BasicNetwork(HttpStack httpStack) |
BasicNetwork(HttpStack httpStack,
ByteArrayPool pool) |
Modifier and Type | Method and Description |
---|---|
protected static java.util.Map<java.lang.String,java.lang.String> |
convertHeaders(Header[] headers)
Converts Headers[] to Map
|
protected void |
logError(java.lang.String what,
java.lang.String url,
long start) |
NetworkResponse |
performRequest(Request<?> request)
Performs the specified request.
|
protected static final boolean DEBUG
protected final HttpStack mHttpStack
protected final ByteArrayPool mPool
public BasicNetwork(HttpStack httpStack)
httpStack
- HTTP stack to be usedpublic BasicNetwork(HttpStack httpStack, ByteArrayPool pool)
httpStack
- HTTP stack to be usedpool
- a buffer pool that improves GC performance in copy operationspublic NetworkResponse performRequest(Request<?> request) throws VolleyError
Network
performRequest
in interface Network
request
- Request to processNetworkResponse
with data and caching metadata; will never be nullVolleyError
- on errorsprotected void logError(java.lang.String what, java.lang.String url, long start)
protected static java.util.Map<java.lang.String,java.lang.String> convertHeaders(Header[] headers)