public URLConnection createURLConnection ( URL url ) throws IOException { URLConnection conn = url . openConnection ( ) ; return conn ; }
Returns an URLConnection for the given URL . Subclasses may override this and customize the connection with custom timeouts headers etc .