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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<Affordance>
getAffordances
(Class<?> type, Method method, String href) Returns allAffordance
s for the given type's method and base URI.static String
getMapping
(Class<?> type, Method method) Deprecated.static UriMapping
getUriMapping
(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 allAffordance
s 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.