Class SpringAffordanceBuilder
java.lang.Object
org.springframework.hateoas.server.core.SpringAffordanceBuilder
Extract information needed to assemble an
Affordance from a Spring MVC web method.- Author:
- Greg Turnquist, Oliver Drotbohm
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<Affordance>getAffordances(Class<?> type, Method method, String href) Returns allAffordances for the given type's method and base URI.static StringgetMapping(Class<?> type, Method method) Deprecated.static UriMappinggetUriMapping(Class<?> type, Method method) Returns the mapping for the given type's method.
-
Field Details
-
DISCOVERER
-
-
Constructor Details
-
SpringAffordanceBuilder
public SpringAffordanceBuilder()
-
-
Method Details
-
getAffordances
Returns allAffordances for the given type's method and base URI.- Parameters:
type- must not be null.method- must not be null.href- must not be null or empty.- Returns:
-
getMapping
Deprecated.since 2.0, usegetUriMapping(Class, Method)instead.Returns the mapping for the given type's method.- Parameters:
type- must not be null.method- must not be null.- Returns:
-
getUriMapping
Returns the mapping for the given type's method.- Parameters:
type- must not be null.method- must not be null.- Returns:
- Since:
- 2.0
-
getUriMapping(Class, Method)instead.