resthub / springmvc-router

Adds route mapping capacity to any "Spring MVC based" webapp. Uses playframework.org Router implementation.
http://resthub.github.com/springmvc-router/
Other
167 stars 63 forks source link

servlet+context prefix auto-configuration #27

Closed bclozel closed 11 years ago

bclozel commented 11 years ago

As asked in issue #22

bclozel commented 11 years ago

@sazzer do you want to take a quick look into this before I merge it into master?

For future reference, HTTPRequestAdapter has a ThreadLocal that holds the current request information.

Using ThreadLocal can be hazardous if the application doesn't directly manage the threads, since the ThreadLocal variable should manually disposed or is automatically disposed when the Thread is killed. But web application servers use Thread pools that aren't managed by the application.

Maybe this implementation can use the RequestContextHolder implemented by springMVC.