public final class URLUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
fetchUrl(String url,
String username,
String password) |
static org.apache.http.HttpResponse |
getUrl(String url,
String username,
String password) |
static void |
notNull(Object object) |
static String |
safeURL(String base,
String sufix) |
public static void notNull(Object object)
public static org.apache.http.HttpResponse getUrl(String url, String username, String password) throws IOException
url - The url to fetchusername - The username to use while fetching the urlpassword - The password to use while fetching the urlIOException - If there was an issue in the communication with the serverpublic static InputStream fetchUrl(String url, String username, String password) throws IOException
IOExceptionCopyright © 2016–2019. All rights reserved.