code: public void parseLinkHeader(final String link) {
  		
  		final String [] links = link.split(",");
  		for (final String part : links) {
  			final String[] segments = part.split(";");
  			if (segments.length < 2)
  				continue;
  			String linkPart = segments[0].trim();
  			if (!linkPart.startsWith("<") || !linkPart.endsWith(">")) {
  			    continue;
  			}
  			linkPart = linkPart.substring(1, linkPart.length() - 1);
  			for (int i = 1; i < segments.length; i++) {
  				final String[] rel = segments[i].trim().split("="); 
  				if (rel.length < 2 || !"rel".equals(rel[0]))
  					continue;
  				String relValue = rel[1];
  				if (relValue.startsWith("\"") && relValue.endsWith("\"")) {
  				    relValue = relValue.substring(1, relValue.length() - 1);
  				}
  				if ("first".equals(relValue)) {
  				    firstLink = linkPart;
  				}
  				else if ("last".equals(relValue)) {
  				    lastLink = linkPart;
  				}
  				else if ("next".equals(relValue)) {
  				    nextLink = linkPart;
  				}
  				else if ("previous".equals(relValue)) {
  				    previousLink = linkPart;
  				}
  			}
  		}
  	}
docs: This parses out the Link for the first, next and prev. Link header looks like this:
  
  {@literal <https://api.catapult.inetwork.com/v1/users/u-id/applications?page=0&size=2>; rel="first",}
  {@literal <https://api.catapult.inetwork.com/v1/users/u-id/applications?page=0&size=2>; rel="previous",}
  {@literal <https://api.catapult.inetwork.com/v1/users/u-id/applications?page=2&size=2>; rel="next"}
  
  
  @param link the link.