I am developing a web application using Spring MVC 3.0 and looking for a turnkey solution, if any, or a link to "best practices" for a URL-action mapping system that can provide the following:
- REST-friendly name of the controller / method to view the mapping. The current mapping implementation will convert the request to a view name, which may be problematic when using multiple parameters and is incompatible with REST URLs
- A service that takes a controller name, method and argument values, and displays the URL that it represents.
- Integration with Spring Security, which can allow me to check for a given URL whether access to the current user is allowed so that I can decide whether to show the URL
- A menu system based on the foregoing, which can determine the commands consisting of these actions and display them on the page
Basically I need the ability to locate URLs in one central location, so changing the URL (during development, I know the idea of don't-change-live-urls :)) doesn’t mean searching and change that URL to a million pages .
Any directions for such an existing solution / tutorial / guide would be wonderful.
Thanjs
source
share