Interface ArtifactResolver
- 
 public interface ArtifactResolverA resolver forArtifactfiles. In order for it to be found by XL Deploy it should be annotated with the enclosedArtifactResolver.Resolverannotation.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceArtifactResolver.ResolverDenote which protocols theArtifactResolversupports.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ResolvedArtifactFileresolveLocation(com.xebialabs.deployit.plugin.api.udm.artifact.SourceArtifact artifact)This method is only called with aSourceArtifactthat has aSourceArtifact.getFileUri()URI that contains (one of) the URI schemes that theArtifactResolver.Resolverannotation specifies.booleanvalidateCorrectness(com.xebialabs.deployit.plugin.api.udm.artifact.SourceArtifact artifact)Validate whether theSourceArtifact.getFileUri()URIis correct with regards to the scheme specific part of the defined scheme.
 
- 
- 
- 
Method Detail- 
resolveLocationResolvedArtifactFile resolveLocation(com.xebialabs.deployit.plugin.api.udm.artifact.SourceArtifact artifact) This method is only called with aSourceArtifactthat has aSourceArtifact.getFileUri()URI that contains (one of) the URI schemes that theArtifactResolver.Resolverannotation specifies.- Parameters:
- artifact- The- SourceArtifactfor which we need to resolve a- ResolvedArtifactFileagainst its- SourceArtifact.getFileUri().
- Returns:
- The ResolvedArtifactFilefrom which you can obtain theInputStream.
- Throws:
- CannotLocateArtifactException- when the file pointed to by the artifact could not be found at the indicated URI.
 
 - 
validateCorrectnessboolean validateCorrectness(com.xebialabs.deployit.plugin.api.udm.artifact.SourceArtifact artifact) Validate whether theSourceArtifact.getFileUri()URIis correct with regards to the scheme specific part of the defined scheme. Only the resolver that "knows about" this scheme is able to do this. NOTE: There is no guarantee that when this method returnstrue , that the location actually resolves to a file, or the file is present. It is implementation specific whether this is checked with this call.- Parameters:
- artifact- The- SourceArtifactwhich needs to be validated with regards to its- SourceArtifact.getFileUri().
- Returns:
- true iff the- URIhas a valid scheme specific part, i.e. this- ArtifactResolverwould be able to resolve it.
 
 
- 
 
-