java.lang.Object
org.shredzone.acme4j.Problem
- All Implemented Interfaces:
Serializable
Represents a JSON Problem.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasJSON()Returns the problem asJSONobject, to access other fields.Returns a detailed and specific human-readable explanation of the problem.Returns theIdentifierthis problem relates to.Returns an URI that identifies the specific occurence of the problem.Returns a list of sub-problems.getTitle()Returns a short, human-readable summary of the problem.getType()Returns the problem type.toString()Returns a human-readable description of the problem, that is as specific as possible.
-
Constructor Details
-
Method Details
-
getType
Returns the problem type. It is always an absolute URI. -
getTitle
Returns a short, human-readable summary of the problem. The text may be localized if supported by the server.nullif the server did not provide a title.- See Also:
-
getDetail
Returns a detailed and specific human-readable explanation of the problem. The text may be localized if supported by the server.- See Also:
-
getInstance
Returns an URI that identifies the specific occurence of the problem. It is always an absolute URI. -
getIdentifier
Returns theIdentifierthis problem relates to. May benull.- Since:
- 2.3
-
getSubProblems
Returns a list of sub-problems. May be empty, but is nevernull. -
asJSON
Returns the problem asJSONobject, to access other fields.- Returns:
- Problem as
JSONobject
-
toString
Returns a human-readable description of the problem, that is as specific as possible. The description may be localized if supported by the server.If
getSubProblems()exist, they will be appended.Technically, it returns
getDetail(). If not set,getTitle()is returned instead. As a last resort,getType()is returned.
-