public synchronized Protocol getProtocol ( URL url ) { // get the protocol String protocol = url . getProtocol ( ) ; return cache . get ( protocol ) ; }
Returns an instance of the protocol to use for a given URL