Modifier and Type | Field and Description |
---|---|
protected static boolean |
DEBUG |
protected HttpStack |
mHttpStack
Deprecated.
Should never have been exposed in the API. This field may be removed in a future
release of Volley.
|
protected ByteArrayPool |
mPool |
Constructor and Description |
---|
BasicNetwork(BaseHttpStack httpStack) |
BasicNetwork(BaseHttpStack httpStack,
ByteArrayPool pool) |
BasicNetwork(HttpStack httpStack)
Deprecated.
use
BasicNetwork(BaseHttpStack) instead to avoid depending on Apache
HTTP. This method may be removed in a future release of Volley. |
BasicNetwork(HttpStack httpStack,
ByteArrayPool pool)
Deprecated.
use
BasicNetwork(BaseHttpStack, ByteArrayPool) instead to avoid
depending on Apache HTTP. This method may be removed in a future release of Volley. |
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
@Deprecated protected final HttpStack mHttpStack
protected final ByteArrayPool mPool
@Deprecated public BasicNetwork(HttpStack httpStack)
BasicNetwork(BaseHttpStack)
instead to avoid depending on Apache
HTTP. This method may be removed in a future release of Volley.httpStack
- HTTP stack to be used@Deprecated public BasicNetwork(HttpStack httpStack, ByteArrayPool pool)
BasicNetwork(BaseHttpStack, ByteArrayPool)
instead to avoid
depending on Apache HTTP. This method may be removed in a future release of Volley.httpStack
- HTTP stack to be usedpool
- a buffer pool that improves GC performance in copy operationspublic 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
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)
@Deprecated protected static java.util.Map<java.lang.String,java.lang.String> convertHeaders(Header[] headers)