public final class ScmStubDownloaderBuilder extends Object implements StubDownloaderBuilder
StubDownloader
to work with contracts and stubs from a SCMConstructor 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 repositorypublic StubDownloader build(StubRunnerOptions stubRunnerOptions)
build
in interface StubDownloaderBuilder
StubDownloader
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 StubDownloaderBuilder
resolve
in interface org.springframework.core.io.ProtocolResolver
Copyright © 2016–2019 Spring. All rights reserved.