Package overit.geocall.util
Class HttpDownload
java.lang.Object
overit.geocall.util.HttpDownload
Utility class that manages an HttpDownload
-
Field Details
-
_url
-
_contentType
-
_contentEncoding
-
-
Constructor Details
-
HttpDownload
Creates an instance of HttpDownload- Parameters:
u- String representing the url- Throws:
MalformedURLException- if the url is malformed
-
-
Method Details
-
get
- Parameters:
file- String representing the file- Returns:
- The
HttpURLConnectionresponse code - Throws:
IOException- if an error occurs during the I/O operations
-
getContentType
Returns the content type- Returns:
- The content type
-
getContentEncoding
Returns the content encoding- Returns:
- The content encoding
-