public final void setDefaultLink ( String rel , String ... hrefs ) { if ( hrefs == null || hrefs . length == 0 ) { defaultLinks . remove ( rel ) ; } else { defaultLinks . put ( rel , stream ( hrefs ) . map ( uri :: resolve ) . collect ( toSet ( ) ) ) ; } }
Registers one or more default links for a specific relation type . These links are used when no links with this relation type are provided by the server .