1
|
package eu.dnetlib.openaire.exporter.datasource.clients;
|
2
|
|
3
|
import java.util.Queue;
|
4
|
|
5
|
import eu.dnetlib.openaire.exporter.model.datasource.DatasourceResponse;
|
6
|
|
7
|
/**
|
8
|
* Created by claudio on 30/11/2016.
|
9
|
*/
|
10
|
public class ClientResponse {
|
11
|
|
12
|
private DatasourceResponse datasourceResponse;
|
13
|
|
14
|
private Queue<Throwable> errors;
|
15
|
|
16
|
public DatasourceResponse getDatasourceResponse() {
|
17
|
return datasourceResponse;
|
18
|
}
|
19
|
|
20
|
public Queue<Throwable> getErrors() {
|
21
|
return errors;
|
22
|
}
|
23
|
|
24
|
public ClientResponse datasourceInfo(DatasourceResponse datasourceResponse) {
|
25
|
this.datasourceResponse = datasourceResponse;
|
26
|
return this;
|
27
|
}
|
28
|
|
29
|
public ClientResponse errors(Queue<Throwable> errors) {
|
30
|
this.errors = errors;
|
31
|
return this;
|
32
|
}
|
33
|
}
|