Here you can find the source of openURLConnection(final URL couchdbURL)
public static HttpURLConnection openURLConnection(final URL couchdbURL)
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; public class Main { public static HttpURLConnection openURLConnection(final URL couchdbURL) { try {// w w w. j a v a2s. c o m return (HttpURLConnection) couchdbURL.openConnection(); } catch (IOException ioe) { throw new RuntimeException(ioe); } } }