Class Download


  • public class Download
    extends Object
    Simple downloader
    Author:
    Christian Paul
    • Constructor Detail

      • Download

        public Download​(String url)
        Constructor with @param url
    • Method Detail

      • getTimeout

        public int getTimeout()
        Returns:
        the timeout
      • setTimeout

        public void setTimeout​(int timeout)
        Set the @param timeout
      • getUserAgent

        public String getUserAgent()
        Returns:
        the userAgent
      • setUserAgent

        public void setUserAgent​(String userAgent)
        Set the @param userAgent
      • getUrl

        public String getUrl()
        Returns:
        the url
      • setUrl

        public void setUrl​(String url)
        Set the @param url
      • execute

        public Response execute()
        Execute download and @return Response
      • getExtension

        protected String getExtension​(String contentType)
        Get file extension of @param contentType
        Returns:
        file extension