|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MethodLinkBuilderFactory<T extends LinkBuilder>
Extension of LinkBuilderFactory for implementations that also support creating LinkBuilders by
pointing to a method.
| Method Summary | |
|---|---|
T |
linkTo(Class<?> type,
Method method,
Object... parameters)
Returns a LinkBuilder pointing to the URI mapped to the given Method assuming it was invoked on an
object of the given type. |
T |
linkTo(Method method,
Object... parameters)
Returns a LinkBuilder pointing to the URI mapped to the given Method and expanding this mapping
using the given parameters. |
T |
linkTo(Object methodInvocationResult)
Returns a LinkBuilder pointing to the URI mapped to the method the result is handed into this method. |
| Methods inherited from interface org.springframework.hateoas.LinkBuilderFactory |
|---|
linkTo, linkTo |
| Method Detail |
|---|
T linkTo(Method method,
Object... parameters)
LinkBuilder pointing to the URI mapped to the given Method and expanding this mapping
using the given parameters.
method - must not be null.parameters -
T linkTo(Class<?> type,
Method method,
Object... parameters)
LinkBuilder pointing to the URI mapped to the given Method assuming it was invoked on an
object of the given type.
type - must not be null.method - must not be null.parameters -
T linkTo(Object methodInvocationResult)
LinkBuilder pointing to the URI mapped to the method the result is handed into this method. Use
DummyInvocationUtils.methodOn(Class, Object...) to obtain a dummy instance of a controller to record a
dummy method invocation on. See ControllerLinkBuilder.linkTo(Object) for an example.
methodInvocationResult - must not be null.
ControllerLinkBuilder.linkTo(Object)
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||