public final class ScmStubDownloaderBuilder extends Object implements StubDownloaderBuilder
StubDownloader to work with contracts and stubs from a SCM.| Constructor and Description |
|---|
ScmStubDownloaderBuilder() |
| Modifier and Type | Method and Description |
|---|---|
StubDownloader |
build(StubRunnerOptions stubRunnerOptions) |
static boolean |
isProtocolAccepted(String url)
Does any of the accepted protocols matches the URL of the repository.
|
org.springframework.core.io.Resource |
resolve(String location,
org.springframework.core.io.ResourceLoader resourceLoader) |
public static boolean isProtocolAccepted(String url)
url - - of the repositorytrue if the protocol is acceptedpublic StubDownloader build(StubRunnerOptions stubRunnerOptions)
build in interface StubDownloaderBuilderstubRunnerOptions - options of Stub RunnerStubDownloader instance of null if current parameters don't
allow building the instancepublic org.springframework.core.io.Resource resolve(String location, org.springframework.core.io.ResourceLoader resourceLoader)
resolve in interface StubDownloaderBuilderresolve in interface org.springframework.core.io.ProtocolResolverCopyright © 2016–2021 Spring. All rights reserved.