SpringSource/spring-hateoas — pull request #18 by dschulten (2012-10-07 13:29:33+00:00)
Title: Support for linking to Controller methods

Hi Oliver,

this pull request contains:

- new ControllerLinkBuilder method that links to controller methods, as in ControllerLinkBuilder.linkTo(methodOn(Controller.class).show(id)) which allows to link to a method having a method-level @requestMapping, see javadoc for usage of the new method.

- added ControllerLinkBuilder.linksToResources method which collects all resources on a controller and provides link templates for them, as preparation for automatic creation of xhtml or siren forms for resources with request params.

Currently I am working on a client library which makes use of services written with spring-hateoas, by strictly using rels and forms for navigation, without the need of out-of band url construction rules.
I will commit it as a separate project soon, hoping it can become part of spring-hateoas later.

I hope you will accept the pull request.

Best regards,
Dietrich