public void setLink ( Link link ) { setHref ( link . getHref ( ) ) ; setHrefAbsolute ( link . getHrefAbsolute ( ) ) ; HttpParameters linkParams = link . getParams ( ) ; if ( linkParams != null ) { for ( Map . Entry < String , List < String > > entry : linkParams . getParameterMap ( ) . entrySet ( ) ) { String paramName = entry . getKey ( ) ; for ( String paramValue : entry . getValue ( ) ) { addParam ( paramName , paramValue ) ; } } } this . addLastModified = link . getAddLastModified ( ) ; setHreflang ( link . getHreflang ( ) ) ; setRel ( link . getRel ( ) ) ; setType ( link . getType ( ) ) ; setMedia ( link . getMedia ( ) ) ; setTitle ( link . getTitle ( ) ) ; }
Copies all values from the provided link .