static public void init ( CredentialsProvider provider , String userAgent ) { if ( provider != null ) try { HTTPSession . setGlobalCredentialsProvider ( provider ) ; } catch ( HTTPException e ) { throw new IllegalArgumentException ( e ) ; } if ( userAgent != null ) HTTPSession . setGlobalUserAgent ( userAgent + "/NetcdfJava/HttpClient" ) ; else HTTPSession . setGlobalUserAgent ( "NetcdfJava/HttpClient" ) ; }
initialize the HttpClient layer .