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
IOException
Copyright © 2016–2022. All rights reserved.