| 程序包 | 说明 |
|---|---|
| cn.trinea.android.common.dao | |
| cn.trinea.android.common.dao.impl | |
| cn.trinea.android.common.entity | |
| cn.trinea.android.common.service | |
| cn.trinea.android.common.util |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpResponse |
HttpCacheDao.getHttpResponse(String url)
get HttpResponse by url
|
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,HttpResponse> |
HttpCacheDao.getHttpResponsesByType(int type)
get HttpResponses by type
|
| 限定符和类型 | 方法和说明 |
|---|---|
long |
HttpCacheDao.insertHttpResponse(HttpResponse httpResponse)
insert HttpResponse
|
| 限定符和类型 | 方法和说明 |
|---|---|
HttpResponse |
HttpCacheDaoImpl.getHttpResponse(String url) |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,HttpResponse> |
HttpCacheDaoImpl.getHttpResponsesByType(int type) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
HttpCacheDaoImpl.insertHttpResponse(HttpResponse httpResponse) |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpResponse |
HttpResponse.setInCache(boolean isInCache)
set isInCache, this is a client mark, whethero is in client cache
|
| 限定符和类型 | 方法和说明 |
|---|---|
HttpResponse |
HttpCache.getFromCache(String url)
get from memory cache first, if not exist in memory cache, get from db
|
HttpResponse |
HttpCache.httpGet(HttpRequest request)
http get
Attentions:
Don't call this on the ui thread, it may costs some times.
|
HttpResponse |
HttpCache.httpGet(String url)
http get
Attentions:
Don't call this on the ui thread, it may costs some times.
|
HttpResponse |
HttpCache.httpGetString(HttpRequest httpRequest)
http get
Attentions:
Don't call this on the ui thread, it may costs some times.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
HttpCache.HttpCacheListener.onPostGet(HttpResponse httpResponse,
boolean isInCache)
Runs on the UI thread after httpGet.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static HttpResponse |
HttpUtils.httpGet(HttpRequest request)
http get synchronous
use gzip compression default
use bufferedReader to improve the reading speed
|
static HttpResponse |
HttpUtils.httpGet(String httpUrl)
http get synchronous
|
static HttpResponse |
HttpUtils.httpPost(HttpRequest request)
http post
use gzip compression default
use bufferedReader to improve the reading speed
|
static HttpResponse |
HttpUtils.httpPost(String httpUrl)
http post
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
HttpUtils.HttpListener.onPostGet(HttpResponse httpResponse)
Runs on the UI thread after httpGet.
|
Copyright © 2012-2014. All Rights Reserved.