public final class HttpUtilities
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected org.apache.log4j.Logger | loggerThe logger. | 
| private static java.lang.String | PROP_FILEThe Constant PROP_FILE. | 
| private java.lang.String | uploadDirThe upload dir. | 
| Constructor and Description | 
|---|
| HttpUtilities()Instantiates a new HttpUtilities based on the properties file. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Boolean | checkUrl(java.lang.String url)check url for readability,. | 
| java.io.File | getFileFromUrl(java.lang.String url,
              java.lang.String filename)write contents of the URL to a file name specified. | 
| static void | main(java.lang.String[] args)The main method. | 
protected org.apache.log4j.Logger logger
private static final java.lang.String PROP_FILE
private java.lang.String uploadDir
public HttpUtilities()
public java.io.File getFileFromUrl(java.lang.String url,
                          java.lang.String filename)
url - the url to read fromfilename - the filename to write topublic java.lang.Boolean checkUrl(java.lang.String url)
url - the url we're testingpublic static void main(java.lang.String[] args)
args - the arguments