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, withProperties
public ExtendedProblem(T extendedProperties)
public Problem.ExtendedProblem<T> withType(@Nullable URI type)
Problem
Problem
by copying its attributes and replacing the type.public Problem.ExtendedProblem<T> withTitle(@Nullable String title)
Problem
Problem
by copying its attributes and replacing the title.public Problem.ExtendedProblem<T> withStatus(@Nullable HttpStatus status)
Problem
Problem
by copying its attributes and replacing the status.withStatus
in class Problem
public Problem.ExtendedProblem<T> withDetail(@Nullable String detail)
Problem
Problem
by copying its attributes and replacing the detail.withDetail
in class Problem
public Problem.ExtendedProblem<T> withInstance(@Nullable URI instance)
Problem
Problem
by copying its attributes and replacing the instance.withInstance
in class Problem
public T getProperties()
public <S> Problem.ExtendedProblem<S> withProperties(S payload)
Problem
Problem.ExtendedProblem
with the given payload as additional properties.withProperties
in class Problem
payload
- must not be null.Copyright © 2011–2021 VMware, Inc.. All rights reserved.