public void finish ( ) { if ( init ) return ; init = true ; if ( xlinkHref == null ) return ; xlinkHref = xlinkHref . trim ( ) ; try { this . xlinkUri = dataset . getParentCatalog ( ) . resolveUri ( xlinkHref ) ; } catch ( java . net . URISyntaxException e ) { log . append ( " ** Error: Bad URL in metadata href = " ) . append ( xlinkHref ) . append ( "\n" ) ; return ; } // open and read the referenced catalog XML try { if ( converter == null ) { log . append ( " **InvMetadata on = (" ) . append ( this ) . append ( "): has no converter\n" ) ; return ; } contentObject = converter . readMetadataContentFromURL ( dataset , xlinkUri ) ; if ( isThreddsMetadata ) tm = ( ThreddsMetadata ) contentObject ; } catch ( java . io . IOException e ) { log . append ( " **InvMetadata on = (" ) . append ( xlinkUri ) . append ( "): Exception (" ) . append ( e . getMessage ( ) ) . append ( ")\n" ) ; // e.printStackTrace(); } }
Finish getting the metadata if necessary . If this is an XLink this will trigger a read of the href the first time called .