Package yakworks.problem
Interface IProblem
-
- All Superinterfaces:
yakworks.i18n.MsgKey,yakworks.i18n.MsgKeyDecorator,Result
- All Known Subinterfaces:
IProblem.Fluent<E>
public interface IProblem extends Result
Simple interface for problem getters- See Also:
- RFC 7807: Problem Details for HTTP APIs
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIProblem.Fluent<E extends IProblem.Fluent>
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.StringgetDetail()A human readable explanation specific to this occurrence of the problem.default java.net.URIgetInstanceURI()An absolute URI that identifies the specific occurrence of the problem.default yakworks.i18n.MsgKeygetMsg()default java.lang.BooleangetOk()success or fail? if ok is true then it still may mean that there are warnings and needs to be looked intodefault java.net.URIgetType()An absolute URI that identifies the problem type.default java.util.List<Violation>getViolations()The list of constraint violations or any othersdefault voidsetDetail(java.lang.String v)default voidsetType(java.net.URI v)default voidsetViolations(java.util.List<Violation> v)-
Methods inherited from interface yakworks.i18n.MsgKey
getFallbackMessage, setArgs, setFallbackMessage
-
Methods inherited from interface yakworks.i18n.MsgKeyDecorator
getArgs, getCode, setArgs, setCode, setMsg
-
Methods inherited from interface yakworks.api.Result
get, getDefaultCode, getPayload, getStatus, getTitle, getValue, setPayload, setStatus, setTitle
-
-
-
-
Method Detail
-
getOk
default java.lang.Boolean getOk()
Description copied from interface:Resultsuccess or fail? if ok is true then it still may mean that there are warnings and needs to be looked into
-
getMsg
default yakworks.i18n.MsgKey getMsg()
- Specified by:
getMsgin interfaceyakworks.i18n.MsgKeyDecorator
-
getType
default java.net.URI getType()
An absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type (e.g., using HTML). When this member is not present, its value is assumed to be "about:blank".- Returns:
- an absolute URI that identifies this problem's type
-
setType
default void setType(java.net.URI v)
-
getDetail
default java.lang.String getDetail()
A human readable explanation specific to this occurrence of the problem.- Returns:
- A human readable explaination of this problem
-
setDetail
default void setDetail(java.lang.String v)
-
getViolations
default java.util.List<Violation> getViolations()
The list of constraint violations or any others
-
setViolations
default void setViolations(java.util.List<Violation> v)
-
getInstanceURI
default java.net.URI getInstanceURI()
An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
-
-