@ Override protected URLConnection openConnection ( URL url ) throws IOException { logger . trace ( "opening connection to resource '{}' (protocol: '{}')" , url . getPath ( ) , url . getProtocol ( ) ) ; URL resource = classloader . getResource ( url . getPath ( ) ) ; return resource . openConnection ( ) ; }
Opens a connection to the given resource if found in the classpath .