Read variable from http context in spring controller
<p>Let me say i want retrieve some information from http context. In my thymeleaf page, I use somethinf like that:</p>

<pre><code>&lt;span th:text="${#httpServletRequest.getHeader('Accept-Language')}"&gt;&lt;/span&gt;
</code></pre>

<p>in my thymeleaf processor, however, I use a code like that:</p>

<pre><code>String language = arguments.getContext().getLocale().getLanguage();
String country = arguments.getContext().getLocale().getCountry();
</code></pre>

<p>How I can retriee this same information in my spring controller, implemented the way below?</p>

<pre><code>  @RequestMapping("/insert_texto/{page}")
  public ModelAndView insert_texto(Model model, @PathVariable("page") String id)    {
    ...
  }
</code></pre>