public class Affordances extends Object implements AffordanceOperations
Affordance instances.afford(HttpMethod)| Modifier and Type | Class and Description |
|---|---|
static class |
Affordances.AffordanceBuilder
Deprecated.
since 1.3, refer to
ConfiguredAffordance instead. Will be made private in 1.4. |
| Modifier and Type | Method and Description |
|---|---|
Affordances.AffordanceBuilder |
afford(HttpMethod httpMethod)
Creates a new
Affordances.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 Affordances.AffordanceBuilder afford(HttpMethod httpMethod)
Affordances.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–2021 Pivotal, Inc.. All rights reserved.