Package eu.clarin.sru.client
Interface SRUExplainHandler
- 
- All Known Subinterfaces:
- SRUDefaultHandler
 - All Known Implementing Classes:
- SRUDefaultHandlerAdapter
 
 public interface SRUExplainHandlerReceive notifications to the response of a explain request.- See Also:
- SRUExplainRequest, SRU Explain Operation
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonDiagnostics(List<SRUDiagnostic> diagnostics)Receive notification of diagnostics.voidonExtraRecordData(String identifier, int position, XMLStreamReader reader)Receive notification of extra record data.voidonExtraResponseData(XMLStreamReader reader)Receive notification of extra response data.voidonFinishRecords(int nextRecordPosition)Receive notifications of the end of the enumeration of records in the response.voidonRecord(String identifier, int position, SRURecordData data)Receive notification of a record in the result set.voidonRequestStatistics(int totalBytesTransferred, long millisTotal, long millisNetwork, long millisProcessing)Receive notification of request statistics.voidonStartRecords(int numberOfRecords, String resultSetId, int resultSetIdleTime)Receive notifications of the start of the enumeration of records in the response.
 
- 
- 
- 
Method Detail- 
onDiagnosticsvoid onDiagnostics(List<SRUDiagnostic> diagnostics) throws SRUClientException Receive notification of diagnostics.- Parameters:
- diagnostics- a list of- SRUDiagnostic
- Throws:
- SRUClientException- any SRU exception, possibly wrapping another exception
- See Also:
- SRUDiagnostic
 
 - 
onRequestStatisticsvoid onRequestStatistics(int totalBytesTransferred, long millisTotal, long millisNetwork, long millisProcessing)Receive notification of request statistics.- Parameters:
- totalBytesTransferred- the total number of bytes transferred while receiving the response
- millisTotal- the total time spend processing the request
- millisNetwork- the time spend performing network operations
- millisProcessing- the time spend processing the response
 
 - 
onExtraResponseDatavoid onExtraResponseData(XMLStreamReader reader) throws XMLStreamException, SRUClientException Receive notification of extra response data.- Parameters:
- reader- a- XMLStreamReaderto parse the extra response data
- Throws:
- XMLStreamException- an error occurred while parsing the response
- SRUClientException- any SRU exception, possibly wrapping another exception
- See Also:
- SRU Extra Data / Extensions
 
 - 
onStartRecordsvoid onStartRecords(int numberOfRecords, String resultSetId, int resultSetIdleTime) throws SRUClientExceptionReceive notifications of the start of the enumeration of records in the response.- Parameters:
- numberOfRecords- the number of records or- -1if not available
- resultSetId- the result set id or- nullif not available
- resultSetIdleTime- the result set idle time or- -1if not available
- Throws:
- SRUClientException- any SRU exception, possibly wrapping another exception
 
 - 
onFinishRecordsvoid onFinishRecords(int nextRecordPosition) throws SRUClientExceptionReceive notifications of the end of the enumeration of records in the response.- Parameters:
- nextRecordPosition- the next record position or- -1if not available
- Throws:
- SRUClientException- any SRU exception, possibly wrapping another exception
 
 - 
onRecordvoid onRecord(String identifier, int position, SRURecordData data) throws SRUClientException Receive notification of a record in the result set.- Parameters:
- identifier- identifier of the record or- nullif not available
- position- position of the record in the result set or- -1if not available
- data- the parsed record data
- Throws:
- SRUClientException- any SRU exception, possibly wrapping another exception
- See Also:
- SRURecordData,- SRURecordDataParser
 
 - 
onExtraRecordDatavoid onExtraRecordData(String identifier, int position, XMLStreamReader reader) throws XMLStreamException, SRUClientException Receive notification of extra record data.- Parameters:
- identifier- identifier of the record or- nullif not available
- position- position of the record in the result set or- -1if not available
- reader- a- XMLStreamReaderto parse the extra term data
- Throws:
- XMLStreamException- an error occurred while parsing the response
- SRUClientException- any SRU exception, possibly wrapping another exception
 
 
- 
 
-