public class HttpUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CONNECTION_TIMEOUT |
static int |
PAGE_TIMEOUT |
Constructor and Description |
---|
HttpUtil() |
Modifier and Type | Method and Description |
---|---|
static org.apache.http.client.HttpClient |
getClient() |
static void |
getURLContent_old(String uri,
StringBuffer content) |
static String |
getURLContent(String uri) |
static boolean |
getURLContent(String url,
StringBuffer content) |
static InputStream |
getURLInputStream(String uri) |
static Reader |
getURLReader(String uri) |
static Map |
parseQueryString(String s) |
public static final int PAGE_TIMEOUT
public static final int CONNECTION_TIMEOUT
public static org.apache.http.client.HttpClient getClient()
public static boolean getURLContent(String url, StringBuffer content) throws IOException
IOException
public static void getURLContent_old(String uri, StringBuffer content) throws MalformedURLException, IOException
MalformedURLException
IOException
public static InputStream getURLInputStream(String uri)
Copyright © 2017 Hitachi Vantara. All rights reserved.