public interface BinaryProvider
BinaryProvider
should provide binaries for only one Browser
.Modifier and Type | Method and Description |
---|---|
File |
download(String version,
Os os,
Architecture architecture,
Path binaryDestinationPath)
Download the binary in a given version for a given
Os and Architecture . |
Optional<String> |
getLatestBinaryVersion(Os os,
Architecture architecture)
Get the latest available binary version for a given
Os and Architecture . |
boolean |
providesBinaryForBrowser(Browser browser)
Indicate whether or not binaries can be provided for a given
Browser . |
boolean providesBinaryForBrowser(Browser browser)
Browser
.browser
- The Browser
to check the support for@Nonnull Optional<String> getLatestBinaryVersion(Os os, Architecture architecture) throws IOException
Os
and Architecture
.os
- The Os
to get the latest binary version forarchitecture
- The Architecture
to get the latest binary version forOptional.empty()
,
when there is no version availableIOException
- In case of a networking error@Nonnull File download(String version, Os os, Architecture architecture, Path binaryDestinationPath) throws IOException
Os
and Architecture
.version
- The desired versionos
- The Os
to get the binary forarchitecture
- The Architecture
to get the binary forbinaryDestinationPath
- The destination Path
the binary shall be deployed toIOException
- In case of a networking errorCopyright © 2019. All rights reserved.