public void setType ( String mediaType ) { if ( mediaType != null ) linkParams . set ( TYPE . paramName , mediaType ) ; else linkParams . remove ( TYPE . paramName ) ; }
The type parameter when present is a hint indicating what the media type of the result of dereferencing the link should be . Note that this is only a hint ; for example it does not override the Content - Type header of a HTTP response obtained by actually following the link . There MUST NOT be more than one type parameter in a link - value .