@@ -0,0 +1,2203 @@
+package com.cloudant.http;%0A%0Aimport java.net.MalformedURLException;%0Aimport java.net.URI;%0Aimport java.net.URISyntaxException;%0Aimport java.net.URL;%0A%0A/**%0A * Created by tomblench on 23/03/15.%0A */%0Apublic class Http %7B%0A%0A    // high level http operations, URL and URI flavoured%0A%0A    public static HttpConnection GET(URL url)%0A    %7B%0A        return connect(%22GET%22, null, url);%0A    %7D%0A%0A    public static HttpConnection GET(URI uri)%0A    %7B%0A        return connect(%22GET%22, null, uri);%0A    %7D%0A%0A    public static HttpConnection PUT(String contentType,%0A                                     URL url)%0A    %7B%0A        return connect(%22PUT%22, contentType, url);%0A    %7D%0A%0A    public static HttpConnection PUT(String contentType,%0A                                     URI uri)%0A    %7B%0A        return connect(%22PUT%22, contentType, uri);%0A    %7D%0A%0A    public static HttpConnection POST(String contentType,%0A                                     URL url)%0A    %7B%0A        return connect(%22POST%22, contentType, url);%0A    %7D%0A%0A    public static HttpConnection POST(String contentType,%0A                                      URI uri)%0A    %7B%0A        return connect(%22POST%22, contentType, uri);%0A    %7D%0A%0A    public static HttpConnection DELETE(URL url)%0A    %7B%0A        return connect(%22DELETE%22, null, url);%0A    %7D%0A%0A    public static HttpConnection DELETE(URI uri)%0A    %7B%0A        return connect(%22DELETE%22, null, uri);%0A    %7D%0A%0A    public static HttpConnection HEAD(URL url)%0A    %7B%0A        return connect(%22HEAD%22, null, url);%0A    %7D%0A%0A    public static HttpConnection HEAD(URI uri)%0A    %7B%0A        return connect(%22HEAD%22, null, uri);%0A    %7D%0A%0A    // low level http operations%0A%0A    public static HttpConnection connect(String requestMethod,%0A                                         String contentType,%0A                                         URL url) %7B%0A        return new HttpConnection(requestMethod, contentType, url);%0A    %7D%0A%0A    public static HttpConnection connect(String requestMethod,%0A                                         String contentType,%0A                                         URI uri) %7B%0A        try %7B%0A            return new HttpConnection(requestMethod, contentType, uri.toURL());%0A        %7D catch (MalformedURLException mue) %7B%0A            return null;%0A        %7D%0A    %7D%0A%0A%0A%7D%0A

Add Http class: factory methods for obtaining HttpConnections