File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
webmagic-core/src/main/java/us/codecraft/webmagic/downloader Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 4
4
import java .nio .charset .Charset ;
5
5
import java .util .HashMap ;
6
6
import java .util .Map ;
7
- import java .util .function .Predicate ;
8
7
9
8
import org .apache .commons .io .IOUtils ;
10
9
import org .apache .http .HttpResponse ;
@@ -44,14 +43,6 @@ public class HttpClientDownloader extends AbstractDownloader {
44
43
45
44
private boolean responseHeader = true ;
46
45
47
- private volatile boolean refreshProxyOnError = false ;
48
-
49
- private Predicate <Throwable > throwablePredicate = t ->false ;
50
-
51
- public void setThrowablePredicate (Predicate <Throwable > predicate ){
52
- this .throwablePredicate = predicate ;
53
- }
54
-
55
46
public void setHttpUriRequestConverter (HttpUriRequestConverter httpUriRequestConverter ) {
56
47
this .httpUriRequestConverter = httpUriRequestConverter ;
57
48
}
You can’t perform that action at this time.
0 commit comments