title: Access to HttpServletResponse cookies
body: <p>I'm trying to migrate from tomcat 6 to tomcat 8.
  I have to get access to <em>org.apache.catalina.connector.Response</em>  cookies.</p>
  
  <p>In tomcat 6 there were a method to do that 
  <a href="https://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/connector/Response.html#getCookies()" rel="nofollow">getCookies()</a></p>
  
  <p>This method is deprecated in Tomcat 8. Any suggestions please?</p>