title: Get HTTP Request header information : Java
body: <p>This is my simple Spring Rest Controller.</p>
  
  <p>How can I get the Http request header information every time an URL is mapped to my controller?</p>
  
  <pre><code>@RestController
  public class GreetingController {
  
  @RequestMapping("/greeting")
  public Greeting greeting(@RequestParam(value="name") String name) {
  
       // Here is where I want to get HTTP Request Header Info
  
      return null;     
  }
  </code></pre>