Package io.manebot.artifact
Interface RemoteArtifactRepository
-
- All Superinterfaces:
ArtifactRepository
public interface RemoteArtifactRepository extends ArtifactRepository
-
-
Method Summary
Modifier and Type Method Description ArtifactgetArtifact(ArtifactIdentifier identifier)Gets a local artifact by its identifier.ArtifactManifestgetManifest(java.lang.String packageId, java.lang.String artifactId)Queries an artifact manifest on this repository.java.net.URLgetUrl()Gets the remote base URL for this repository.default booleanisLocal()Finds if this repository is a local repository.-
Methods inherited from interface io.manebot.artifact.ArtifactRepository
getArtifact, getManifest
-
-
-
-
Method Detail
-
getUrl
java.net.URL getUrl()
Gets the remote base URL for this repository.- Returns:
- Repository URL.
-
isLocal
default boolean isLocal()
Finds if this repository is a local repository.- Specified by:
isLocalin interfaceArtifactRepository- Returns:
- false
-
getManifest
ArtifactManifest getManifest(java.lang.String packageId, java.lang.String artifactId) throws ArtifactRepositoryException, ArtifactNotFoundException
Queries an artifact manifest on this repository.- Specified by:
getManifestin interfaceArtifactRepository- Parameters:
packageId- Package ID to query.artifactId- Artifact ID to query.- Returns:
- Artifact manifest.
- Throws:
ArtifactRepositoryException- if an issue occurs while accessing the repositoryArtifactNotFoundException- if the manifest cannot be found.
-
getArtifact
Artifact getArtifact(ArtifactIdentifier identifier) throws ArtifactRepositoryException, ArtifactNotFoundException
Gets a local artifact by its identifier.- Specified by:
getArtifactin interfaceArtifactRepository- Parameters:
identifier- Artifact identifier.- Returns:
- Artifact definition instance.
- Throws:
ArtifactRepositoryException- if an issue occurs while accessing the repositoryArtifactNotFoundException- if the manifest cannot be found.
-
-