title: how to received "Accept" header in REST web service server side
body: <p>i have write a REST web service in java.But If I want to receive <code>Accept : application/json</code> header ,how to do that?If I want to receive more custom header like "CDMI-Speciation-1.0" , how can i receive both headers?</p>
  
  <p>My web service is like that:</p>
  
  <pre><code>@PUT
  @Consumes("application/json")
  @Produces("application/json")
  public vodi doPut(){.....}
  </code></pre>
  
  <p>My request should be like : <code>curl --header "Content-Type:application/json" --header</code> <code>Accept:application/json" --header "CDMI-Specification-1.0" <a href="http://localhost/user" rel="nofollow">http://localhost/user</a> -v</code></p>
  
  <p>What I know is <code>@Conusmes</code> is for "Content-Type" .Is it?</p>
  
  <p>thanks</p>