/**
  * Return all values for the given header as a List of Strings.
  *
  * <p>As of Servlet 3.0, this method is also defined in HttpServletResponse. As of Spring 3.1, it
  * returns a List of stringified values for Servlet 3.0 compatibility. Consider using {@link
  * #getHeaderValues(String)} for raw Object access.
  *
  * @param name the name of the header
  * @return the associated header values, or an empty List if none
  */
 @Override
 public List<String> getHeaders(String name) {
   HeaderValueHolder header = HeaderValueHolder.getByName(this.headers, name);
   if (header != null) {
     return header.getStringValues();
   } else {
     return Collections.emptyList();
   }
 }
 public Enumeration<String> getHeaders(String name) {
   HeaderValueHolder header = HeaderValueHolder.getByName(this.headers, name);
   return Collections.enumeration(
       header != null ? header.getStringValues() : new LinkedList<String>());
 }