private static class Maven2RepositoryLayoutFactory.Maven2RepositoryLayout extends java.lang.Object implements RepositoryLayout
RepositoryLayout.Checksum| Modifier and Type | Field and Description |
|---|---|
static RepositoryLayout |
INSTANCE |
| Modifier | Constructor and Description |
|---|---|
private |
Maven2RepositoryLayout() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
private java.util.List<RepositoryLayout.Checksum> |
getChecksums(java.net.URI location) |
java.net.URI |
getLocation(Artifact artifact,
boolean upload)
Gets the location within a remote repository where the specified artifact resides.
|
java.net.URI |
getLocation(Metadata metadata,
boolean upload)
Gets the location within a remote repository where the specified metadata resides.
|
private java.net.URI |
toUri(java.lang.String path) |
public static final RepositoryLayout INSTANCE
private java.net.URI toUri(java.lang.String path)
public java.net.URI getLocation(Artifact artifact, boolean upload)
RepositoryLayoutgetLocation in interface RepositoryLayoutartifact - The artifact to get the URI for, must not be null.upload - false if the artifact is being downloaded, true if the artifact is being uploaded.null.public java.net.URI getLocation(Metadata metadata, boolean upload)
RepositoryLayoutgetLocation in interface RepositoryLayoutmetadata - The metadata to get the URI for, must not be null.upload - false if the metadata is being downloaded, true if the metadata is being uploaded.null.public java.util.List<RepositoryLayout.Checksum> getChecksums(Artifact artifact, boolean upload, java.net.URI location)
RepositoryLayoutgetChecksums in interface RepositoryLayoutartifact - The artifact to get the checksum files for, must not be null.upload - false if the checksums are being downloaded/verified, true if the checksums are
being uploaded/created.location - The relative URI to the artifact within the repository as previously obtained from
RepositoryLayout.getLocation(Artifact, boolean), must not be null.null.public java.util.List<RepositoryLayout.Checksum> getChecksums(Metadata metadata, boolean upload, java.net.URI location)
RepositoryLayoutgetChecksums in interface RepositoryLayoutmetadata - The metadata to get the checksum files for, must not be null.upload - false if the checksums are being downloaded/verified, true if the checksums are
being uploaded/created.location - The relative URI to the metadata within the repository as previously obtained from
RepositoryLayout.getLocation(Metadata, boolean), must not be null.null.private java.util.List<RepositoryLayout.Checksum> getChecksums(java.net.URI location)