I would like to support a scenario where a specific piece of value can be sent to my application either by a parameter or header. I have several arguments that I would like to support in this fashion.
What would be the best approach to achieve this with Spring mvc annotations?
Please note that sometimes the header will me sent to me and sometimes a parameter with the same key. From my application perspective it makes no difference at all. The best way for me would be to map it to a JavaBean.
Is it possible?
Yosi