}
return post;
}
public void handleResponse(final HttpResponse response, final HttpContext context) {
NHttpConnection conn = (NHttpConnection) context.getAttribute(
HttpExecutionContext.HTTP_CONNECTION);
List list = (List) context.getAttribute("LIST");
int i = ((Integer) context.getAttribute("RES-COUNT")).intValue();
i++;
context.setAttribute("RES-COUNT", new Integer(i));
try {
HttpEntity entity = response.getEntity();
byte[] data = EntityUtils.toByteArray(entity);
list.add(data);
} catch (IOException ex) {
fail(ex.getMessage());
}
if (i < reqNo) {
conn.requestInput();
} else {
try {
conn.close();
} catch (IOException ex) {
fail(ex.getMessage());
}
}
}