Class ResourceModelIssue
java.lang.Object
org.glassfish.jersey.server.model.ResourceModelIssue
Resource model validity issue.
Covers various model issues, such as duplicate URI templates, duplicate
HTTP method annotations, etc.
The model issues can be either fatal warnings or hings (see
getSeverity()
).
While the non-fatal issues are merely reported as warnings in the log, the
fatal issues prevent the successful application deployment.- Author:
- Jakub Podlesak, Marek Potociar
-
Constructor Summary
ConstructorDescriptionResourceModelIssue
(Object source, String message) Create a new resource model warning.ResourceModelIssue
(Object source, String message, Severity severity) Create a new resource model issue. -
Method Summary
-
Constructor Details
-
ResourceModelIssue
Create a new resource model warning.- Parameters:
source
- issue source.message
- human-readable issue description.
-
ResourceModelIssue
Create a new resource model issue.- Parameters:
source
- issue source.message
- human-readable issue description.severity
- indicates severity of added error.
-
-
Method Details
-
getMessage
Human-readable description of the issue.- Returns:
- message describing the issue.
-
getSeverity
GetSeverity
.- Returns:
- severity of current
ResourceModelIssue
.
-
getSource
The issue source. Identifies the object where the issue was found.- Returns:
- source of the issue.
-
toString
-
equals
-
hashCode
public int hashCode()
-