public static URL makeURL ( String specification ) throws MalformedURLException { logger . trace ( "retrieving URL for specification: '{}'" , specification ) ; if ( specification . startsWith ( "classpath:" ) ) { logger . trace ( "URL is of type 'classpath'" ) ; return new URL ( null , specification , new ClassPathURLStreamHandler ( ) ) ; } logger . trace ( "URL is of normal type" ) ; return new URL ( specification ) ; }
Returns an URL object for the given URL specification .