public class HTTPUtils extends Object
| Constructor and Description |
|---|
HTTPUtils() |
| Modifier and Type | Method and Description |
|---|---|
static HostAndPort |
getHostAndPortFromProperty(String value)
Given a property like 0.0.0.0:1234 or c6401.ambari.apache.org:50070
will extract the hostname and the port number
|
static String |
requestURL(String urlToRead)
Issues a GET request against a URL.
|
public static String requestURL(String urlToRead)
urlToRead - URL to read frompublic static HostAndPort getHostAndPortFromProperty(String value)
value - AddressCopyright © 2022 Apache Software Foundation. All rights reserved.