1 | package eu.clarin.sru.client; |
---|
2 | |
---|
3 | import java.util.List; |
---|
4 | |
---|
5 | import javax.xml.stream.XMLStreamException; |
---|
6 | import javax.xml.stream.XMLStreamReader; |
---|
7 | |
---|
8 | public interface SRUSearchRetrieveHandler { |
---|
9 | |
---|
10 | public void onDiagnostics(List<SRUDiagnostic> diagnostics) |
---|
11 | throws SRUClientException; |
---|
12 | |
---|
13 | public void onRequestStatistics(int bytes, long millisTotal, |
---|
14 | long millisNetwork, long millisParsing); |
---|
15 | |
---|
16 | public void onExtraResponseData(XMLStreamReader reader) |
---|
17 | throws XMLStreamException, SRUClientException; |
---|
18 | |
---|
19 | public void onStartRecords(int numberOfRecords, int resultSetId, |
---|
20 | int resultSetIdleTime) throws SRUClientException; |
---|
21 | |
---|
22 | public void onFinishRecords(int nextRecordPosition) |
---|
23 | throws SRUClientException; |
---|
24 | |
---|
25 | public void onRecord(String schema, String identifier, int position, |
---|
26 | XMLStreamReader reader) throws XMLStreamException, |
---|
27 | SRUClientException; |
---|
28 | |
---|
29 | public void onRecord(String identifier, int position, SRURecordData data) |
---|
30 | throws SRUClientException; |
---|
31 | |
---|
32 | public void onSurrogateRecord(String identifier, int position, |
---|
33 | SRUDiagnostic data) throws SRUClientException; |
---|
34 | |
---|
35 | public void onExtraRecordData(String identifier, int position, |
---|
36 | XMLStreamReader reader) throws XMLStreamException, |
---|
37 | SRUClientException; |
---|
38 | |
---|
39 | } // interface SRUSearchRetrieveHandler |
---|