private HttpResponse cursorToHttpResponse(Cursor cursor,String url){
  if (cursor == null) {
    return null;
  }
  if (url == null) {
    url=cursor.getString(DbConstants.HTTP_CACHE_TABLE_URL_INDEX);
  }
  if (StringUtils.isEmpty(url)) {
    return null;
  }
  HttpResponse httpResponse=new HttpResponse(url);
  httpResponse.setResponseBody(cursor.getString(DbConstants.HTTP_CACHE_TABLE_RESPONSE_INDEX));
  httpResponse.setExpiredTime(cursor.getLong(DbConstants.HTTP_CACHE_TABLE_EXPIRES_INDEX));
  httpResponse.setType(cursor.getInt(DbConstants.HTTP_CACHE_TABLE_TYPE_INDEX));
  return httpResponse;
}

private HttpResponse cursorToHttpResponse ( Cursor cursor , String url ) { if ( cursor == null ) { return null ; } if ( url == null ) { url = cursor . getString ( DbConstants . HTTP_CACHE_TABLE_URL_INDEX ) ; } if ( StringUtils . isEmpty ( url ) ) { return null ; } HttpResponse httpResponse = new HttpResponse ( url ) ; httpResponse . setResponseBody ( cursor . getString ( DbConstants . HTTP_CACHE_TABLE_RESPONSE_INDEX ) ) ; httpResponse . setExpiredTime ( cursor . getLong ( DbConstants . HTTP_CACHE_TABLE_EXPIRES_INDEX ) ) ; httpResponse . setType ( cursor . getInt ( DbConstants . HTTP_CACHE_TABLE_TYPE_INDEX ) ) ; return httpResponse ; }
convert cursor to httpresponse
