My project consist of many types of sites, like a blog and a forum and a site.
I have specific controllers for the blog, forum and site (and a lot more)
Certain controllers i wish to share between types of site, for example the login controller.
But i only want the login controller to be shared with forum and site.
I use a filter to add a request header "partType" which has value site, forum or blog.
My @RequestMapping of my login controller is:
@RequestMapping(value="/dash/login", headers={"partType=forum","partType=site" })
This results in mapping:
{[/dash/login/dologin],methods=[GET || POST],headers=[partType=forum && partType=site]}
Notice the && (and). Is it possible to get an || (or) in here?
Because the "partType" header is never a forum and a site, but i do want the logincontroller to support partType forum and site, but not blog, so i can't just remove the header attribute from the requestmapping annotation.