title: How to convert RequestHeader to custom object in Spring
body: <p>I have method in my controller:</p>
  
  <pre><code>@RequestMapping(method = RequestMethod.POST)
  public CustomObject createCustomObject(final @RequestHeader("userId") Long userId) {
     ...
  }
  </code></pre>
  
  <p>Can I write some custom converter or something like that to convert this RequestHeader userId param to User object so my method will be:</p>
  
  <pre><code>@RequestMapping(method = RequestMethod.POST)
  public CustomObject createCustomObject(final User user) {
     ...
  }
  </code></pre>
  
  <p>Is it possible to do with spring-mvc?</p>