Class Problem.ExtendedProblem<T>
java.lang.Object
org.springframework.hateoas.mediatype.problem.Problem
org.springframework.hateoas.mediatype.problem.Problem.ExtendedProblem<T>
- Enclosing class:
- Problem
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.hateoas.mediatype.problem.Problem
Problem.ExtendedProblem<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the additional properties.inthashCode()toString()withDetail(String detail) Create a newProblemby copying its attributes and replacing the detail.withInstance(URI instance) Create a newProblemby copying its attributes and replacing the instance.<S> Problem.ExtendedProblem<S>withProperties(S payload) Creates a newProblem.ExtendedProblemwith the given payload as additional properties.withStatus(HttpStatus status) Create a newProblemby copying its attributes and replacing the status.Create a newProblemby copying its attributes and replacing the title.Create a newProblemby copying its attributes and replacing the type.Methods inherited from class org.springframework.hateoas.mediatype.problem.Problem
create, create, getDetail, getInstance, getStatus, getTitle, getType, statusOnly, withProperties, withProperties
-
Constructor Details
-
ExtendedProblem
-
-
Method Details
-
withType
Description copied from class:ProblemCreate a newProblemby copying its attributes and replacing the type. -
withTitle
Description copied from class:ProblemCreate a newProblemby copying its attributes and replacing the title. -
withStatus
Description copied from class:ProblemCreate a newProblemby copying its attributes and replacing the status.- Overrides:
withStatusin classProblem- Returns:
-
withDetail
Description copied from class:ProblemCreate a newProblemby copying its attributes and replacing the detail.- Overrides:
withDetailin classProblem- Returns:
-
withInstance
Description copied from class:ProblemCreate a newProblemby copying its attributes and replacing the instance.- Overrides:
withInstancein classProblem- Returns:
-
getProperties
Returns the additional properties.- Returns:
-
withProperties
Description copied from class:ProblemCreates a newProblem.ExtendedProblemwith the given payload as additional properties.- Overrides:
withPropertiesin classProblem- Parameters:
payload- must not be null.- Returns:
-
equals
-
hashCode
public int hashCode() -
toString
-