1
|
package eu.dnetlib.data.collector.plugins.oaisets;
|
2
|
|
3
|
import java.util.Iterator;
|
4
|
|
5
|
import org.springframework.beans.factory.annotation.Required;
|
6
|
|
7
|
import eu.dnetlib.data.collector.plugins.HttpConnector;
|
8
|
|
9
|
public class OaiSetsIteratorFactory {
|
10
|
|
11
|
private HttpConnector httpConnector;
|
12
|
|
13
|
public Iterator<String> newIterator(String baseUrl) {
|
14
|
return new OaiSetsIterator(baseUrl, httpConnector);
|
15
|
}
|
16
|
|
17
|
public HttpConnector getHttpConnector() {
|
18
|
return httpConnector;
|
19
|
}
|
20
|
|
21
|
@Required
|
22
|
public void setHttpConnector(HttpConnector httpConnector) {
|
23
|
this.httpConnector = httpConnector;
|
24
|
}
|
25
|
|
26
|
}
|