| Modifier and Type | Field and Description |
|---|---|
protected Authenticator |
authenticator |
protected java.lang.String |
authToken |
protected static boolean |
DEBUG |
protected HttpStack |
mHttpStack |
protected ByteArrayPool |
mPool |
| Constructor and Description |
|---|
BasicNetwork(HttpStack httpStack) |
BasicNetwork(HttpStack httpStack,
ByteArrayPool pool,
Authenticator authenticator) |
| Modifier and Type | Method and Description |
|---|---|
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
protected final Authenticator authenticator
protected java.lang.String authToken
public BasicNetwork(HttpStack httpStack)
httpStack - HTTP stack to be usedpublic BasicNetwork(HttpStack httpStack, ByteArrayPool pool, Authenticator authenticator)
httpStack - HTTP stack to be usedpool - a buffer pool that improves GC performance in copy operationspublic NetworkResponse performRequest(Request<?> request) throws JusError
NetworkperformRequest in interface Networkrequest - Request to processNetworkResponse with data and caching metadata; will never be nullJusError - on errorsprotected void logError(java.lang.String what,
java.lang.String url,
long start)