if(status == 200) {
ARCRecord r =
new ARCRecord(new GZIPInputStream(
method.getResponseBodyAsStream()),
"id",0L,false,false,true);
Resource res = null;
try {
res = ResourceFactory.ARCArchiveRecordToResource(r, null);
} catch (ResourceNotAvailableException e) {
LOGGER.severe(e.getMessage());
throw new IOException(e);
}
httpResponse.setStatus(res.getStatusCode());
Map<String,String> headers = res.getHttpHeaders();
Iterator<String> keys = headers.keySet().iterator();
while(keys.hasNext()) {
String key = keys.next();
if(!key.equalsIgnoreCase("Connection")
&& !key.equalsIgnoreCase("Content-Length")