Changeset 605 for AE/installer2/src/net/oni2/aeinstaller/backend/network
- Timestamp:
- Jan 13, 2013, 8:11:07 PM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller/backend/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/backend/network/DrupalJSONQuery.java
r600 r605 112 112 * Number of page to get (for limited results, e.g. nodes), -1 to 113 113 * ignore 114 * @param pagesize 115 * Maximum number of elements to return 114 116 * @return JSON structure of item 115 117 * @throws Exception 116 118 * on HTTP error 117 119 */ 118 public static JSONArray getIndex(String resource, int page )120 public static JSONArray getIndex(String resource, int page, int pagesize) 119 121 throws Exception { 120 122 String pageN = ""; 121 123 if (page >= 0) 122 124 pageN = "&page=" + Integer.toString(page); 123 return executeQuery(getDepotUrl() + resource + ".json" + pageN, null); 125 String pagesizeN = ""; 126 if (pagesize >= 0) 127 pagesizeN = "&pagesize=" + Integer.toString(pagesize); 128 return executeQuery(getDepotUrl() + resource + ".json" + pageN 129 + pagesizeN, null); 124 130 } 125 131 -
AE/installer2/src/net/oni2/aeinstaller/backend/network/FileDownloader.java
r604 r605 212 212 213 213 i++; 214 if ((i % 10) == 0)214 if ((i % 50) == 0) 215 215 updateStatus(downloaded, fileLength); 216 216 }
Note:
See TracChangeset
for help on using the changeset viewer.