source: SRUClient/trunk/src/main/java/eu/clarin/sru/client/SRUSearchRetrieveHandler.java @ 2021

Last change on this file since 2021 was 2021, checked in by oschonef, 12 years ago
  • try handle fatal diagnostics correctly
  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1package eu.clarin.sru.client;
2
3import java.util.List;
4
5import javax.xml.stream.XMLStreamException;
6import javax.xml.stream.XMLStreamReader;
7
8public 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
Note: See TracBrowser for help on using the repository browser.