Package org.eclipse.aether.internal.impl
Class Maven2RepositoryLayoutFactory.Maven2RepositoryLayout
- java.lang.Object
-
- org.eclipse.aether.internal.impl.Maven2RepositoryLayoutFactory.Maven2RepositoryLayout
-
- All Implemented Interfaces:
RepositoryLayout
- Direct Known Subclasses:
Maven2RepositoryLayoutFactory.Maven2RepositoryLayoutEx
- Enclosing class:
- Maven2RepositoryLayoutFactory
private static class Maven2RepositoryLayoutFactory.Maven2RepositoryLayout extends java.lang.Object implements RepositoryLayout
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.aether.spi.connector.layout.RepositoryLayout
RepositoryLayout.Checksum
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>checksumsAlgorithms
-
Constructor Summary
Constructors Modifier Constructor Description protectedMaven2RepositoryLayout(java.util.List<java.lang.String> checksumsAlgorithms)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.List<RepositoryLayout.Checksum>getChecksums(java.net.URI location)java.util.List<RepositoryLayout.Checksum>getChecksums(Artifact artifact, boolean upload, java.net.URI location)Gets the checksums files that a remote repository keeps to help detect data corruption during transfers of the specified artifact.java.util.List<RepositoryLayout.Checksum>getChecksums(Metadata metadata, boolean upload, java.net.URI location)Gets the checksums files that a remote repository keeps to help detect data corruption during transfers of the specified metadata.java.net.URIgetLocation(Artifact artifact, boolean upload)Gets the location within a remote repository where the specified artifact resides.java.net.URIgetLocation(Metadata metadata, boolean upload)Gets the location within a remote repository where the specified metadata resides.private java.net.URItoUri(java.lang.String path)
-
-
-
Method Detail
-
toUri
private java.net.URI toUri(java.lang.String path)
-
getLocation
public java.net.URI getLocation(Artifact artifact, boolean upload)
Description copied from interface:RepositoryLayoutGets the location within a remote repository where the specified artifact resides. The URI is relative to the root directory of the repository.- Specified by:
getLocationin interfaceRepositoryLayout- Parameters:
artifact- The artifact to get the URI for, must not benull.upload-falseif the artifact is being downloaded,trueif the artifact is being uploaded.- Returns:
- The relative URI to the artifact, never
null.
-
getLocation
public java.net.URI getLocation(Metadata metadata, boolean upload)
Description copied from interface:RepositoryLayoutGets the location within a remote repository where the specified metadata resides. The URI is relative to the root directory of the repository.- Specified by:
getLocationin interfaceRepositoryLayout- Parameters:
metadata- The metadata to get the URI for, must not benull.upload-falseif the metadata is being downloaded,trueif the metadata is being uploaded.- Returns:
- The relative URI to the metadata, never
null.
-
getChecksums
public java.util.List<RepositoryLayout.Checksum> getChecksums(Artifact artifact, boolean upload, java.net.URI location)
Description copied from interface:RepositoryLayoutGets the checksums files that a remote repository keeps to help detect data corruption during transfers of the specified artifact.- Specified by:
getChecksumsin interfaceRepositoryLayout- Parameters:
artifact- The artifact to get the checksum files for, must not benull.upload-falseif the checksums are being downloaded/verified,trueif the checksums are being uploaded/created.location- The relative URI to the artifact within the repository as previously obtained fromRepositoryLayout.getLocation(Artifact, boolean), must not benull.- Returns:
- The checksum files for the given artifact, possibly empty but never
null.
-
getChecksums
public java.util.List<RepositoryLayout.Checksum> getChecksums(Metadata metadata, boolean upload, java.net.URI location)
Description copied from interface:RepositoryLayoutGets the checksums files that a remote repository keeps to help detect data corruption during transfers of the specified metadata.- Specified by:
getChecksumsin interfaceRepositoryLayout- Parameters:
metadata- The metadata to get the checksum files for, must not benull.upload-falseif the checksums are being downloaded/verified,trueif the checksums are being uploaded/created.location- The relative URI to the metadata within the repository as previously obtained fromRepositoryLayout.getLocation(Metadata, boolean), must not benull.- Returns:
- The checksum files for the given metadata, possibly empty but never
null.
-
getChecksums
private java.util.List<RepositoryLayout.Checksum> getChecksums(java.net.URI location)
-
-