Interface UriComponentsContributor
public interface UriComponentsContributor
SPI callback to enhance a
UriComponentsBuilder when referring to a method through a dummy method invocation.
Will usually be implemented in implementations of HandlerMethodArgumentResolver as they represent exactly the
same functionality inverted.- Author:
- Oliver Gierke
- See Also:
-
MethodLinkBuilderFactory#linkTo(Object)
-
Method Summary
Modifier and TypeMethodDescriptionvoidenhance(org.springframework.web.util.UriComponentsBuilder builder, @Nullable org.springframework.core.MethodParameter parameter, @Nullable Object value) Enhance the givenUriComponentsBuilderwith the given value.booleansupportsParameter(org.springframework.core.MethodParameter parameter) Returns whether theUriComponentsBuildersupports the givenMethodParameter.
-
Method Details
-
supportsParameter
boolean supportsParameter(org.springframework.core.MethodParameter parameter) Returns whether theUriComponentsBuildersupports the givenMethodParameter.- Parameters:
parameter- will never be null.- Returns:
-
enhance
void enhance(org.springframework.web.util.UriComponentsBuilder builder, @Nullable org.springframework.core.MethodParameter parameter, @Nullable Object value) Enhance the givenUriComponentsBuilderwith the given value.- Parameters:
builder- will never be null.parameter- can be null.value- can be null.
-