Class Affordances
java.lang.Object
org.springframework.hateoas.mediatype.Affordances
- All Implemented Interfaces:
AffordanceOperations
Primary API to construct
Affordance
instances.- Author:
- Oliver Drotbohm
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionafford
(HttpMethod httpMethod) Creates a newAffordances.AffordanceBuilder
for the given HTTP method for further customization.static Affordances
stream()
Returns allAffordance
s created.toLink()
Returns aLink
equipped with theAffordance
currently under construction.
-
Method Details
-
of
-
stream
Returns allAffordance
s created.- Returns:
- will never be null.
-
afford
Creates a newAffordances.AffordanceBuilder
for the given HTTP method for further customization. See the wither-methods for details.- Parameters:
httpMethod
- must not be null.- Returns:
- will never be null.
-
toLink
Description copied from interface:AffordanceOperations
Returns aLink
equipped with theAffordance
currently under construction.- Specified by:
toLink
in interfaceAffordanceOperations
- Returns:
- will never be null.
-