Problem.ExtendedProblem<T>| Constructor and Description |
|---|
ExtendedProblem(T extendedProperties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
T |
getProperties()
Returns the additional properties.
|
int |
hashCode() |
String |
toString() |
Problem.ExtendedProblem<T> |
withDetail(String detail)
Create a new
Problem by copying its attributes and replacing the detail. |
Problem.ExtendedProblem<T> |
withInstance(URI instance)
Create a new
Problem by copying its attributes and replacing the instance. |
<S> Problem.ExtendedProblem<S> |
withProperties(S payload)
Creates a new
Problem.ExtendedProblem with the given payload as additional properties. |
Problem.ExtendedProblem<T> |
withStatus(HttpStatus status)
Create a new
Problem by copying its attributes and replacing the status. |
Problem.ExtendedProblem<T> |
withTitle(String title)
Create a new
Problem by copying its attributes and replacing the title. |
Problem.ExtendedProblem<T> |
withType(URI type)
Create a new
Problem by copying its attributes and replacing the type. |
create, create, getDetail, getInstance, getStatus, getTitle, getType, statusOnly, withProperties, withPropertiespublic ExtendedProblem(T extendedProperties)
public Problem.ExtendedProblem<T> withType(@Nullable URI type)
ProblemProblem by copying its attributes and replacing the type.public Problem.ExtendedProblem<T> withTitle(@Nullable String title)
ProblemProblem by copying its attributes and replacing the title.public Problem.ExtendedProblem<T> withStatus(@Nullable HttpStatus status)
ProblemProblem by copying its attributes and replacing the status.withStatus in class Problempublic Problem.ExtendedProblem<T> withDetail(@Nullable String detail)
ProblemProblem by copying its attributes and replacing the detail.withDetail in class Problempublic Problem.ExtendedProblem<T> withInstance(@Nullable URI instance)
ProblemProblem by copying its attributes and replacing the instance.withInstance in class Problempublic T getProperties()
public <S> Problem.ExtendedProblem<S> withProperties(S payload)
ProblemProblem.ExtendedProblem with the given payload as additional properties.withProperties in class Problempayload - must not be null.Copyright © 2011–2021 Pivotal, Inc.. All rights reserved.