protected List < String > unpackLinks ( final List < String > rawLinks ) { if ( rawLinks == null ) { return null ; } return rawLinks . stream ( ) . flatMap ( x -> Arrays . stream ( x . split ( "," ) ) ) . collect ( Collectors . toList ( ) ) ; }
Multi - value Link header values parsed by the javax . ws . rs . core are not split out by the framework Therefore we must do this ourselves .