public abstract class IspBasedVcsRepositoryProviderSupport extends java.lang.Object implements VcsRepositoryProvider
| Constructor and Description |
|---|
IspBasedVcsRepositoryProviderSupport(java.lang.String prefix,
java.util.regex.Pattern dependencyPattern) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
couldHandle(RawVcsReference rawReference) |
protected java.util.regex.Pattern |
dependencyPattern() |
protected abstract VcsType |
detectVcsTypeOf(RawVcsReference rawReference) |
protected VcsReference |
detectVcsUriOf(RawVcsReference rawReference,
VcsType vcsType) |
protected VcsType |
fixedVcsTypeFor(RawVcsReference rawReference,
VcsType fixedType) |
protected abstract java.lang.String |
getName() |
protected java.lang.String |
idFor(java.util.regex.Matcher matcher,
RawVcsReference rawReference) |
protected java.util.regex.Matcher |
nameMatcherFor(RawVcsReference rawReference) |
protected java.lang.String |
prefix() |
protected java.lang.String |
refFor(java.util.regex.Matcher matcher,
RawVcsReference rawReference) |
protected VcsReference |
resolveVcsUriFor(RawVcsReference rawReference,
VcsType vcsType) |
protected java.lang.String |
rootFor(java.util.regex.Matcher matcher,
RawVcsReference rawReference) |
protected java.lang.String |
subPathOf(java.util.regex.Matcher matcher) |
VcsRepository |
tryProvideFor(RawVcsReference rawReference) |
protected VcsRepositoryFactory |
vcsFactory() |
protected java.lang.String |
vcsUriPrefixFor(RawVcsReference rawReference,
VcsType vcsType) |
protected java.lang.String |
vcsUriUriSuffixFor(RawVcsReference rawReference,
VcsType vcsType) |
public IspBasedVcsRepositoryProviderSupport(@Nullable
java.lang.String prefix,
@Nonnull
java.util.regex.Pattern dependencyPattern)
@Nullable public VcsRepository tryProvideFor(@Nonnull RawVcsReference rawReference) throws VcsException
tryProvideFor in interface VcsRepositoryProviderVcsExceptionprotected boolean couldHandle(@Nonnull
RawVcsReference rawReference)
@Nonnull protected abstract VcsType detectVcsTypeOf(@Nonnull RawVcsReference rawReference) throws VcsException
VcsException@Nonnull protected VcsType fixedVcsTypeFor(@Nonnull RawVcsReference rawReference, @Nonnull VcsType fixedType) throws VcsException
VcsException@Nonnull protected VcsReference detectVcsUriOf(@Nonnull RawVcsReference rawReference, VcsType vcsType) throws VcsException
VcsException@Nonnull protected VcsReference resolveVcsUriFor(@Nonnull RawVcsReference rawReference, @Nonnull VcsType vcsType) throws VcsException
VcsException@Nullable protected java.lang.String subPathOf(java.util.regex.Matcher matcher)
@Nullable
protected java.lang.String refFor(@Nonnull
java.util.regex.Matcher matcher,
@Nonnull
RawVcsReference rawReference)
throws VcsException
VcsException@Nonnull
protected java.lang.String rootFor(@Nonnull
java.util.regex.Matcher matcher,
@Nonnull
RawVcsReference rawReference)
throws VcsException
VcsException@Nonnull
protected java.lang.String idFor(@Nonnull
java.util.regex.Matcher matcher,
@Nonnull
RawVcsReference rawReference)
throws VcsException
VcsException@Nonnull
protected java.util.regex.Matcher nameMatcherFor(@Nonnull
RawVcsReference rawReference)
throws VcsException
VcsException@Nonnull
protected java.lang.String vcsUriPrefixFor(@Nonnull
RawVcsReference rawReference,
@Nonnull
VcsType vcsType)
throws VcsException
VcsException@Nonnull
protected java.lang.String vcsUriUriSuffixFor(@Nonnull
RawVcsReference rawReference,
@Nonnull
VcsType vcsType)
throws VcsException
VcsException@Nonnull protected java.lang.String prefix()
@Nonnull protected java.util.regex.Pattern dependencyPattern()
@Nonnull protected VcsRepositoryFactory vcsFactory()
@Nonnull protected abstract java.lang.String getName()