public static List<RiakLink> parseLinkHeader(String header) {
List<RiakLink> links = new ArrayList<RiakLink>();
Map<String, Map<String, String>> parsedLinks = LinkHeader.parse(header);
for (Entry<String, Map<String, String>> e: parsedLinks.entrySet()) {
String url = e.getKey();
RiakLink link = parseOneLink(url, e.getValue());
if (link != null) {
links.add(link);
}
}
return links;