Interface MethodLinkBuilderFactory<T extends LinkBuilder>
- All Superinterfaces:
LinkBuilderFactory<T>
- All Known Implementing Classes:
WebMvcLinkBuilderFactory
Extension of
LinkBuilderFactory for implementations that also support creating LinkBuilders by
pointing to a method.- Author:
- Oliver Gierke
-
Method Summary
Modifier and TypeMethodDescriptionReturns aLinkBuilderpointing to the URI mapped to the givenMethodassuming it was invoked on an object of the given type expanding the mapping using null values as parameters.Returns aLinkBuilderpointing to the URI mapped to the givenMethodassuming it was invoked on an object of the given type.Returns aLinkBuilderpointing to the URI mapped to the method the result is handed into this method.Returns aLinkBuilderpointing to the URI mapped to the givenMethodand expanding this mapping using null values as parameters.Returns aLinkBuilderpointing to the URI mapped to the givenMethodand expanding this mapping using the given parameters.Methods inherited from interface org.springframework.hateoas.server.LinkBuilderFactory
linkTo, linkTo, linkTo
-
Method Details
-
linkTo
Returns aLinkBuilderpointing to the URI mapped to the givenMethodand expanding this mapping using null values as parameters.- Parameters:
method- must not be null.- Returns:
- Since:
- 1.4
-
linkTo
Returns aLinkBuilderpointing to the URI mapped to the givenMethodand expanding this mapping using the given parameters. The number of parameter values has to match the length of the given method's expected parameters.- Parameters:
method- must not be null.parameters-- Returns:
-
linkTo
Returns aLinkBuilderpointing to the URI mapped to the givenMethodassuming it was invoked on an object of the given type expanding the mapping using null values as parameters.- Parameters:
type- must not be null.method- must not be null.- Returns:
- Since:
- 1.4
-
linkTo
Returns aLinkBuilderpointing to the URI mapped to the givenMethodassuming it was invoked on an object of the given type. The number of parameter values has to match the length of the given method's expected parameters.- Parameters:
type- must not be null.method- must not be null.parameters-- Returns:
-
linkTo
Returns aLinkBuilderpointing to the URI mapped to the method the result is handed into this method. UseDummyInvocationUtils#methodOn(Class, Object...)to obtain a dummy instance of a controller to record a dummy method invocation on. SeeWebMvcLinkBuilder#linkTo(Object)for an example.- Parameters:
methodInvocationResult- must not be null.- Returns:
- See Also:
-
WebMvcLinkBuilder#linkTo(Object)
-