Package io.manebot.artifact
Interface RemoteArtifactRepository
-
- All Superinterfaces:
ArtifactRepository
public interface RemoteArtifactRepository extends ArtifactRepository
-
-
Method Summary
Modifier and Type Method Description Artifact
getArtifact(ArtifactIdentifier identifier)
Gets a local artifact by its identifier.ArtifactManifest
getManifest(java.lang.String packageId, java.lang.String artifactId)
Queries an artifact manifest on this repository.java.net.URL
getUrl()
Gets the remote base URL for this repository.default boolean
isLocal()
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:
isLocal
in 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:
getManifest
in 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:
getArtifact
in 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.
-
-