Package org.openjump.util
Class URLConnectionProvider
- java.lang.Object
-
- org.openjump.util.URLConnectionProvider
-
public class URLConnectionProvider extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static URLConnectionProviderinstancestatic StringKEY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description URLConnectiongetConnection(URL url)Deprecated.use getHttpConnection(url,followRedirects) insteadHttpURLConnectiongetHttpConnection(URL url)HttpURLConnectiongetHttpConnection(URL url, boolean followRedirects)static URLConnectionProvidergetInstance()
-
-
-
Field Detail
-
KEY
public static String KEY
-
instance
public static URLConnectionProvider instance
-
-
Method Detail
-
getInstance
public static URLConnectionProvider getInstance()
-
getHttpConnection
public HttpURLConnection getHttpConnection(URL url, boolean followRedirects) throws IOException
- Throws:
IOException
-
getConnection
@Deprecated public URLConnection getConnection(URL url) throws IOException
Deprecated.use getHttpConnection(url,followRedirects) instead- Parameters:
url- URL- Returns:
- a URLConnection
- Throws:
IOException- if an IOException occurs
-
getHttpConnection
public HttpURLConnection getHttpConnection(URL url) throws IOException
- Throws:
IOException
-
-