Class Problem
- java.lang.Object
-
- com.alon.spring.crud.api.exceptionhandler.Problem
-
public class Problem extends java.lang.ObjectThis class implements the RFC 7807 and extends some attributes The RFC attributes are 'status', 'type', 'title' and 'detail' https://tools.ietf.org/html/rfc7807- Author:
- Paulo Alonso
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProblem.ProblemBuilderstatic classProblem.Violation
-
Constructor Summary
Constructors Constructor Description Problem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDetail()java.lang.IntegergetStatus()java.time.OffsetDateTimegetTimestamp()java.lang.StringgetTitle()java.lang.StringgetType()java.util.List<Problem.Violation>getViolations()static Problem.ProblemBuilderof()
-
-
-
Method Detail
-
getStatus
public java.lang.Integer getStatus()
-
getType
public java.lang.String getType()
-
getTitle
public java.lang.String getTitle()
-
getDetail
public java.lang.String getDetail()
-
getTimestamp
public java.time.OffsetDateTime getTimestamp()
-
getViolations
public java.util.List<Problem.Violation> getViolations()
-
of
public static Problem.ProblemBuilder of()
-
-