public class HttpUtils extends Object
Constructor and Description |
---|
HttpUtils() |
Modifier and Type | Method and Description |
---|---|
static InputStream |
getData(String url) |
static InputStream |
getData(String url,
String requestHeaderName,
String requestHeaderValue) |
static void |
testUrl(String url) |
public static InputStream getData(String url) throws IOException
IOException
public static InputStream getData(String url, String requestHeaderName, String requestHeaderValue) throws org.apache.http.client.ClientProtocolException, IOException
org.apache.http.client.ClientProtocolException
IOException
public static void testUrl(String url) throws IOException
IOException
Copyright © 2019. All rights reserved.