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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the additional properties.int
hashCode()
toString()
withDetail
(String detail) Create a newProblem
by copying its attributes and replacing the detail.withInstance
(URI instance) Create a newProblem
by copying its attributes and replacing the instance.<S> Problem.ExtendedProblem<S>
withProperties
(S payload) Creates a newProblem.ExtendedProblem
with the given payload as additional properties.withStatus
(HttpStatus status) Create a newProblem
by copying its attributes and replacing the status.Create a newProblem
by copying its attributes and replacing the title.Create a newProblem
by 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:Problem
Create a newProblem
by copying its attributes and replacing the type. -
withTitle
Description copied from class:Problem
Create a newProblem
by copying its attributes and replacing the title. -
withStatus
Description copied from class:Problem
Create a newProblem
by copying its attributes and replacing the status.- Overrides:
withStatus
in classProblem
- Returns:
-
withDetail
Description copied from class:Problem
Create a newProblem
by copying its attributes and replacing the detail.- Overrides:
withDetail
in classProblem
- Returns:
-
withInstance
Description copied from class:Problem
Create a newProblem
by copying its attributes and replacing the instance.- Overrides:
withInstance
in classProblem
- Returns:
-
getProperties
Returns the additional properties.- Returns:
-
withProperties
Description copied from class:Problem
Creates a newProblem.ExtendedProblem
with the given payload as additional properties.- Overrides:
withProperties
in classProblem
- Parameters:
payload
- must not be null.- Returns:
-
equals
-
hashCode
public int hashCode() -
toString
-