Class SRUExplainResult


  • public abstract class SRUExplainResult
    extends Object
    A result set of an explain operation. A database implementation may use it implement extensions to the SRU protocol, i.e. providing extraResponseData.

    This class needs to be implemented for the target data source.

    See Also:
    SRU Explain Operation
    • Constructor Detail

      • SRUExplainResult

        protected SRUExplainResult​(SRUDiagnosticList diagnostics)
        Constructor.
        Parameters:
        diagnostics - an instance of a SRUDiagnosticList
        See Also:
        SRUDiagnosticList
    • Method Detail

      • addDiagnostic

        protected final void addDiagnostic​(String uri,
                                           String details,
                                           String message)
        Add a non surrogate diagnostic to the response.
        Parameters:
        uri - the diagnostic's identifying URI
        details - supplementary information available, often in a format specified by the diagnostic or null
        message - human readable message to display to the end user or null
      • addDiagnostic

        protected final void addDiagnostic​(String uri,
                                           String details)
        Add a non surrogate diagnostic to the response.
        Parameters:
        uri - the diagnostic's identifying URI
        details - supplementary information available, often in a format specified by the diagnostic or null
      • addDiagnostic

        protected final void addDiagnostic​(String uri)
        Add a non surrogate diagnostic to the response.
        Parameters:
        uri - the diagnostic's identifying URI
      • hasExtraResponseData

        public boolean hasExtraResponseData()
        Check, if extra response data should be serialized for this request. Default implementation is provided for convince and always returns false.
        Returns:
        true if extra response data should be serialized.
        See Also:
        writeExtraResponseData(XMLStreamWriter)
      • close

        public void close()
        Release this result and free any associated resources.

        This method must not throw any exceptions

        Calling the method close on a result object that is already closed is a no-op.