Back to project page dandy.
The source code is released under:
GNU General Public License
If you think the Android project dandy listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.workhabit.drupal.api.site.support; // w ww .j a v a 2s.co m import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; /** * Copyright 2009 - WorkHabit, Inc. - acs * Date: 1/20/11, 1:55 PM */ public class HttpUrlConnectionFactoryImpl implements HttpUrlConnectionFactory { public HttpURLConnection getConnection(String url) throws IOException { URL urlObject = new URL(url); HttpURLConnection conn = (HttpURLConnection) urlObject.openConnection(); conn.setDoInput(true); conn.setDoOutput(true); conn.setUseCaches(false); return conn; } }