public class BasicNetwork extends java.lang.Object implements Network
BaseHttpStack.| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
DEBUG |
protected ByteArrayPool |
mPool |
| Constructor and Description |
|---|
BasicNetwork(BaseHttpStack httpStack) |
BasicNetwork(BaseHttpStack httpStack,
ByteArrayPool pool) |
| Modifier and Type | Method and Description |
|---|---|
protected static java.util.Map<java.lang.String,java.lang.String> |
convertHeaders(Header[] headers)
Deprecated.
Should never have been exposed in the API. This method may be removed in a future
release of Volley.
|
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 ByteArrayPool mPool
public BasicNetwork(BaseHttpStack httpStack)
httpStack - HTTP stack to be usedpublic BasicNetwork(BaseHttpStack 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
NetworkperformRequest in interface Networkrequest - 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)
@Deprecated protected static java.util.Map<java.lang.String,java.lang.String> convertHeaders(Header[] headers)