13891390139113921393139413951396139713981399
HttpEntity entity = response.getEntity(); byte[] data = EntityUtils.toByteArray(entity); list.addBytes(data); requestCount.decrement(); } catch (IOException ex) { requestCount.abort(); return; } if (i < reqNo) { conn.requestInput();
15191520152115221523152415251526152715281529
String data = EntityUtils.toString(entity); if(!data.equals("Error: " + (i-1))) throw new IOException(); requestCount.decrement(); } catch (IOException ex) { requestCount.abort(); return; } if (i < reqNo) { conn.requestInput();
16381639164016411642164316441645164616471648
17281729173017311732173317341735173617371738
context.setAttribute("RES-COUNT", Integer.valueOf(i)); if(response.getStatusLine().getStatusCode() == 501) requestCount.decrement(); else requestCount.abort(); if (i < reqNo) { conn.requestInput(); } }
18461847184818491850185118521853185418551856
try { HttpEntity entity = response.getEntity(); byte[] data = EntityUtils.toByteArray(entity); if(data.length > 0) requestCount.abort(); else requestCount.decrement(); } catch (IOException ex) { requestCount.abort(); return;
18501851185218531854185518561857185818591860
if(data.length > 0) requestCount.abort(); else requestCount.decrement(); } catch (IOException ex) { requestCount.abort(); return; } if (i < reqNo) { conn.requestInput();
11491150115111521153115411551156115711581159
HttpEntity entity = response.getEntity(); if (entity != null) { try { entity.consumeContent(); } catch (IOException ex) { requestCount.abort(); return; } } list.addResponse(response);
14351436143714381439144014411442144314441445
15741575157615771578157915801581158215831584
while(instream.read(tmp) != -1) { Thread.sleep(1); } instream.close(); } catch (InterruptedException ex) { requestCount.abort(); return; } catch (IOException ex) { requestCount.abort(); return; }
15771578157915801581158215831584158515861587
instream.close(); } catch (InterruptedException ex) { requestCount.abort(); return; } catch (IOException ex) { requestCount.abort(); return; } } requestCount.decrement();