Package eu.clarin.sru.server
Class SRUDiagnostic
- java.lang.Object
-
- eu.clarin.sru.server.SRUDiagnostic
-
public final class SRUDiagnostic extends Object
Class to hold a SRU diagnostic.- See Also:
SRUConstants
,SRUDiagnosticList
, SRU Diagnostics, SRU Diagnostics List
-
-
Constructor Summary
Constructors Constructor Description SRUDiagnostic(String uri)
Constructor.SRUDiagnostic(String uri, String details)
Constructor.SRUDiagnostic(String uri, String details, String message)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDetails()
Get supplementary information for this diagnostic.String
getMessage()
Get human readable message.String
getURI()
Get code for this diagnostic.
-
-
-
Constructor Detail
-
SRUDiagnostic
public SRUDiagnostic(String uri, String details, String message)
Constructor.- Parameters:
uri
- the diagnostic's identifying URIdetails
- supplementary information available, often in a format specified by the diagnostic ornull
message
- human readable message to display to the end user ornull
- Throws:
NullPointerException
- if uri isnull
IllegalArgumentException
- if uri is empty string
-
SRUDiagnostic
public SRUDiagnostic(String uri, String details)
Constructor.- Parameters:
uri
- the diagnostic's identifying URIdetails
- supplementary information available, often in a format specified by the diagnostic ornull
-
SRUDiagnostic
public SRUDiagnostic(String uri)
Constructor.- Parameters:
uri
- the diagnostic's identifying URI
-
-
Method Detail
-
getURI
public String getURI()
Get code for this diagnostic.- Returns:
- diagnostic code
- See Also:
SRUConstants
-
getDetails
public String getDetails()
Get supplementary information for this diagnostic. The format for this value is often specified by the diagnostic code.- Returns:
- supplementary information
-
getMessage
public String getMessage()
Get human readable message.- Returns:
- human readable message
-
-