title: How to get cookie in filter rest api jersey
body: <p>I am sending cookie from a client in Rest API request and I want to read on a filter. I am using this code on the filter for retrieving the cookies.</p>
  
  <pre><code>Map&lt;String, Cookie&gt; cookies  = requestContext.getCookies();
  Cookie cookie = cookies.get("token");
  String token = cookie.getValue();
  </code></pre>
  
  <p>But it returns null. Can anyone suggest me how can I retrive cookie on filter.</p>