public class Affordances extends Object implements AffordanceOperations
Affordance instances.afford(HttpMethod)| Modifier and Type | Method and Description |
|---|---|
ConfigurableAffordance |
afford(HttpMethod httpMethod)
Creates a new
AffordanceBuilder for the given HTTP method for further customization. |
static Affordances |
of(Link link) |
Stream<Affordance> |
stream()
Returns all
Affordances created. |
Link |
toLink()
Returns a
Link equipped with the Affordance currently under construction. |
public static Affordances of(Link link)
public Stream<Affordance> stream()
Affordances created.public ConfigurableAffordance afford(HttpMethod httpMethod)
AffordanceBuilder for the given HTTP method for further customization. See the wither-methods
for details.httpMethod - must not be null.public Link toLink()
AffordanceOperationsLink equipped with the Affordance currently under construction.toLink in interface AffordanceOperationsCopyright © 2011–2022 Pivotal, Inc.. All rights reserved.