1 | /** |
---|
2 | * This software is copyright (c) 2011-2022 by |
---|
3 | * - Leibniz-Institut fuer Deutsche Sprache (http://www.ids-mannheim.de) |
---|
4 | * This is free software. You can redistribute it |
---|
5 | * and/or modify it under the terms described in |
---|
6 | * the GNU General Public License v3 of which you |
---|
7 | * should have received a copy. Otherwise you can download |
---|
8 | * it from |
---|
9 | * |
---|
10 | * http://www.gnu.org/licenses/gpl-3.0.txt |
---|
11 | * |
---|
12 | * @copyright Leibniz-Institut fuer Deutsche Sprache (http://www.ids-mannheim.de) |
---|
13 | * |
---|
14 | * @license http://www.gnu.org/licenses/gpl-3.0.txt |
---|
15 | * GNU General Public License v3 |
---|
16 | */ |
---|
17 | package eu.clarin.sru.server; |
---|
18 | |
---|
19 | /** |
---|
20 | * Container for non surrogate diagnostics for the request. The will be put in |
---|
21 | * the <em>diagnostics</em> part of the response. |
---|
22 | * |
---|
23 | * @see SRUConstants |
---|
24 | * @see SRUDiagnostic |
---|
25 | * @see <a href="http://www.loc.gov/standards/sru/specs/diagnostics.html"> SRU |
---|
26 | * Diagnostics</a> |
---|
27 | * @see <a href="http://www.loc.gov/standards/sru/resources/diagnostics-list.html"> |
---|
28 | * SRU Diagnostics List</a> |
---|
29 | */ |
---|
30 | public interface SRUDiagnosticList { |
---|
31 | |
---|
32 | /** |
---|
33 | * Add a non surrogate diagnostic to the response. |
---|
34 | * |
---|
35 | * @param uri |
---|
36 | * the diagnostic's identifying URI |
---|
37 | * @param details |
---|
38 | * supplementary information available, often in a format |
---|
39 | * specified by the diagnostic or <code>null</code> |
---|
40 | * @param message |
---|
41 | * human readable message to display to the end user or |
---|
42 | * <code>null</code> |
---|
43 | */ |
---|
44 | public void addDiagnostic(String uri, String details, String message); |
---|
45 | |
---|
46 | } // interface DiagnosticList |
---|