Interface ProxyProvider

  • All Known Implementing Classes:
    SimpleProxyProvider

    public interface ProxyProvider
    Proxy provider.
    Since:
    0.7.0
    • Method Detail

      • returnProxy

        void returnProxy​(Proxy proxy,
                         Page page,
                         Task task)
        Return proxy to Provider when complete a download.
        Parameters:
        proxy - the proxy config contains host,port and identify info
        page - the download result
        task - the download task
      • getProxy

        Proxy getProxy​(Task task)
        Get a proxy for task by some strategy.
        Parameters:
        task - the download task
        Returns:
        proxy