Class HttpDownload

java.lang.Object
overit.geocall.util.HttpDownload

public class HttpDownload extends Object
Utility class that manages an HttpDownload
  • Field Details

    • _url

      protected URL _url
    • _contentType

      protected String _contentType
    • _contentEncoding

      protected String _contentEncoding
  • Constructor Details

  • Method Details

    • get

      public int get(String file) throws IOException
      Parameters:
      file - String representing the file
      Returns:
      The HttpURLConnection response code
      Throws:
      IOException - if an error occurs during the I/O operations
    • getContentType

      public String getContentType()
      Returns the content type
      Returns:
      The content type
    • getContentEncoding

      public String getContentEncoding()
      Returns the content encoding
      Returns:
      The content encoding