public class URLSpec extends Object
| Constructor and Description |
|---|
URLSpec(String url) |
URLSpec(String url,
Proxy proxy) |
URLSpec(String url,
String host,
int port) |
URLSpec(URL url) |
URLSpec(URL url,
Proxy proxy) |
| Modifier and Type | Method and Description |
|---|---|
URLConnection |
openConnection() |
String |
toString() |
public URLSpec(String url) throws MalformedURLException
MalformedURLExceptionpublic URLSpec(URL url)
public URLSpec(String url, String host, int port) throws MalformedURLException
MalformedURLExceptionpublic URLSpec(String url, Proxy proxy) throws MalformedURLException
MalformedURLExceptionpublic URLConnection openConnection() throws IOException
IOExceptionCopyright © 2023. All rights reserved.