Is there any annotation available in jersey API to achieve request filtration based on header value? The same is achieved in spring like
@RequestMapping(value = "/test", method = RequestMethod.POST, headers = {"version=v1.1"})
Is there any annotation available in jersey API to achieve request filtration based on header value? The same is achieved in spring like
@RequestMapping(value = "/test", method = RequestMethod.POST, headers = {"version=v1.1"})
There is no way to do this by using annotations. However, you can access the HttpServletRequest, for example