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.AffordanceBuilderfor the given HTTP method for further customization.static Affordancesstream()Returns allAffordances created.toLink()Returns aLinkequipped with theAffordancecurrently under construction.
-
Method Details
-
of
-
stream
Returns allAffordances created.- Returns:
- will never be null.
-
afford
Creates a newAffordances.AffordanceBuilderfor 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:AffordanceOperationsReturns aLinkequipped with theAffordancecurrently under construction.- Specified by:
toLinkin interfaceAffordanceOperations- Returns:
- will never be null.
-