org.jenkinsci.plugins.chromedriver
Class DownloadableImpl

java.lang.Object
  extended by hudson.model.DownloadService.Downloadable
      extended by org.jenkinsci.plugins.chromedriver.DownloadableImpl
All Implemented Interfaces:
hudson.ExtensionPoint

@Extension
public class DownloadableImpl
extends hudson.model.DownloadService.Downloadable

Downloads chromedriver installation data.

Author:
Kohsuke Kawaguchi

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
DownloadableImpl()
           
 
Method Summary
 File resolve(String osName, String sunArchDataModel, hudson.model.TaskListener listener)
          If the package isn't downloaded yet, download it and return its local cache.
 URL select(String osName, String sunArchDataModel)
          Selects the right binary to download and returns its URL.
 
Methods inherited from class hudson.model.DownloadService.Downloadable
all, doPostBack, get, getData, getDataFile, getDue, getId, getInterval, getUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadableImpl

public DownloadableImpl()
Method Detail

resolve

public File resolve(String osName,
                    String sunArchDataModel,
                    hudson.model.TaskListener listener)
             throws IOException
If the package isn't downloaded yet, download it and return its local cache.

Throws:
IOException

select

public URL select(String osName,
                  String sunArchDataModel)
           throws IOException
Selects the right binary to download and returns its URL.

Parameters:
osName - Value of the osName system property.
sunArchDataModel - Value of "sun.arch.data.model" system property.
Throws:
IOException


Copyright © 2004-2014. All Rights Reserved.