this.sb.crawlQueues.errorURL.push(request,this.sb.peers.mySeed().hash.getBytes(),newDate(),1,FailCategory.FINAL_PROCESS_CONTEXT,"redirection not wanted",code);
thrownewIOException("REJECTED EMPTY RESPONSE BODY '"+client.getHttpResponse().getStatusLine()+"' for URL "+request.url().toString());
thrownewIOException("REJECTED UNWANTED REDIRECTION '"+client.getHttpResponse().getStatusLine()+"' for URL "+request.url().toString());
}elseif(code==200||code==203){
}
// the transfer is ok
}elseif(responseBody==null){
// no response, reject file
// we write the new cache entry to file system directly
thrownewIOException("REJECTED URL "+request.url()+" because file size '"+contentLength+"' exceeds max filesize limit of "+maxFileSize+" bytes. (GET)");
thrownewIOException("REJECTED URL "+request.url()+" because file size '"+contentLength+"' exceeds max filesize limit of "+maxFileSize+" bytes. (GET)");
request,
requestHeader,
header,
Integer.toString(code),
profile,
responseBody
);
returnresponse;
}else{
// if the response has not the right response type then reject file
this.sb.crawlQueues.errorURL.push(request,this.sb.peers.mySeed().hash.getBytes(),newDate(),1,FailCategory.TEMPORARY_NETWORK_FAILURE,"wrong http status code",code);
thrownewIOException("REJECTED WRONG STATUS TYPE '"+client.getHttpResponse().getStatusLine()+"' for URL "+request.url().toString());
// if the response has not the right response type then reject file
this.sb.crawlQueues.errorURL.push(request,this.sb.peers.mySeed().hash.getBytes(),newDate(),1,FailCategory.TEMPORARY_NETWORK_FAILURE,"wrong http status code",code);
thrownewIOException("REJECTED WRONG STATUS TYPE '"+client.getHttpResponse().getStatusLine()+"' for URL "+request.url().toString());