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 class SRUDefaultHandlerAdapter implements SRUDefaultHandler { |
---|
9 | |
---|
10 | @Override |
---|
11 | public void onFatalError(List<SRUDiagnostic> diagnistics) |
---|
12 | throws SRUClientException { |
---|
13 | } |
---|
14 | |
---|
15 | |
---|
16 | @Override |
---|
17 | public void onRequestStatistics(int bytes, long millisTotal, |
---|
18 | long millisNetwork, long millisParsing) { |
---|
19 | } |
---|
20 | |
---|
21 | |
---|
22 | @Override |
---|
23 | public void onExtraResponseData(XMLStreamReader reader) |
---|
24 | throws XMLStreamException, SRUClientException { |
---|
25 | } |
---|
26 | |
---|
27 | |
---|
28 | @Override |
---|
29 | public void onStartTerms() throws SRUClientException { |
---|
30 | } |
---|
31 | |
---|
32 | |
---|
33 | @Override |
---|
34 | public void onFinishTerms() throws SRUClientException { |
---|
35 | } |
---|
36 | |
---|
37 | |
---|
38 | @Override |
---|
39 | public void onTerm(String value, int numberOfRecords, String displayTerm, |
---|
40 | WhereInList whereInList) throws SRUClientException { |
---|
41 | } |
---|
42 | |
---|
43 | |
---|
44 | @Override |
---|
45 | public void onExtraTermData(String value, XMLStreamReader reader) |
---|
46 | throws XMLStreamException, SRUClientException { |
---|
47 | } |
---|
48 | |
---|
49 | |
---|
50 | @Override |
---|
51 | public void onStartRecords(int numberOfRecords, int resultSetId, |
---|
52 | int resultSetIdleTime) throws SRUClientException { |
---|
53 | } |
---|
54 | |
---|
55 | |
---|
56 | @Override |
---|
57 | public void onFinishRecords(int nextRecordPosition) |
---|
58 | throws SRUClientException { |
---|
59 | } |
---|
60 | |
---|
61 | @Override |
---|
62 | public void onRecord(String schema, String identifier, int position, |
---|
63 | XMLStreamReader reader) throws XMLStreamException, |
---|
64 | SRUClientException { |
---|
65 | } |
---|
66 | |
---|
67 | |
---|
68 | @Override |
---|
69 | public void onRecord(String identifier, int position, SRURecordData data) |
---|
70 | throws SRUClientException { |
---|
71 | } |
---|
72 | |
---|
73 | |
---|
74 | @Override |
---|
75 | public void onSurrogateRecord(String identifier, int position, |
---|
76 | SRUDiagnostic data) throws SRUClientException { |
---|
77 | } |
---|
78 | |
---|
79 | |
---|
80 | @Override |
---|
81 | public void onExtraRecordData(String identifier, int position, |
---|
82 | XMLStreamReader reader) throws XMLStreamException, |
---|
83 | SRUClientException { |
---|
84 | } |
---|
85 | |
---|
86 | } // class SRUDefaultHandler |
---|