this.sb.crawlQueues.errorURL.push(request,myHash,newDate(),1,FailCategory.TEMPORARY_NETWORK_FAILURE,"no redirection url provided, field '"+HeaderFramework.LOCATION+"' is empty",statusCode);
thrownewIOException("REJECTED EMTPY REDIRECTION '"+client.getHttpResponse().getStatusLine()+"' for URL "+requestURLString);
this.sb.crawlQueues.errorURL.push(request,this.sb.peers.mySeed().hash.getBytes(),newDate(),1,FailCategory.TEMPORARY_NETWORK_FAILURE,"redirection to double content",code);
thrownewIOException("CRAWLER Redirection of URL="+request.url().toString()+" ignored. The url appears already in db "+dbname);
if(dbname!=null){// customer request
this.sb.crawlQueues.errorURL.push(request,myHash,newDate(),1,FailCategory.TEMPORARY_NETWORK_FAILURE,"redirection to double content",statusCode);
thrownewIOException("CRAWLER Redirection of URL="+requestURLString+" ignored. The url appears already in db "+dbname);
thrownewIOException("REJECTED EMTPY REDIRECTION '"+client.getHttpResponse().getStatusLine()+"' for URL "+request.url().toString());
}
}else{
// we don't want to follow redirects
this.sb.crawlQueues.errorURL.push(request,this.sb.peers.mySeed().hash.getBytes(),newDate(),1,FailCategory.FINAL_PROCESS_CONTEXT,"redirection not wanted",code);
thrownewIOException("REJECTED UNWANTED REDIRECTION '"+client.getHttpResponse().getStatusLine()+"' for URL "+request.url().toString());
this.sb.crawlQueues.errorURL.push(request,myHash,newDate(),1,FailCategory.FINAL_PROCESS_CONTEXT,"redirection not wanted",statusCode);
thrownewIOException("REJECTED UNWANTED REDIRECTION '"+client.getHttpResponse().getStatusLine()+"' for URL "+requestURLString);
thrownewIOException("REJECTED URL "+request.url()+" because file size '"+contentLength+"' exceeds max filesize limit of "+maxFileSize+" bytes. (GET)");
}
@ -211,8 +213,8 @@ public final class HTTPLoader {
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());
this.sb.crawlQueues.errorURL.push(request,myHash,newDate(),1,FailCategory.TEMPORARY_NETWORK_FAILURE,"wrong http status code",statusCode);
thrownewIOException("REJECTED WRONG STATUS TYPE '"+client.getHttpResponse().getStatusLine()+"' for URL "+requestURLString);