Java URLConnection Create getUrlConnection(String urlString)

Here you can find the source of getUrlConnection(String urlString)

Description

get Url Connection

License

Open Source License

Declaration

public static URLConnection getUrlConnection(String urlString) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.IOException;

import java.net.URL;
import java.net.URLConnection;

public class Main {
    public static URLConnection getUrlConnection(String urlString) throws IOException {
        URL url = new URL(urlString);
        URLConnection con = url.openConnection();
        return con;
    }//w  w  w.ja  v a 2s  .  c o m
}

Related

  1. createConnection(URL url)
  2. createConnection(URL url)
  3. createConnection(URL url)
  4. createConnection(URL url, Proxy proxy)
  5. getURLConnection(String uri)
  6. getURLConnection(URL url)
  7. openConnection(final URL url)
  8. openConnection(String urlPath)
  9. openConnection(URL localURL)