protected abstract static class LocalPathPrefixComposerFactorySupport.LocalPathPrefixComposerSupport extends Object implements LocalPathPrefixComposer
Modifier and Type | Field and Description |
---|---|
protected String |
localPrefix |
protected String |
releasesPrefix |
protected String |
remotePrefix |
protected String |
snapshotsPrefix |
protected boolean |
split |
protected boolean |
splitLocal |
protected boolean |
splitRemote |
protected boolean |
splitRemoteRepository |
protected boolean |
splitRemoteRepositoryLast |
Modifier | Constructor and Description |
---|---|
protected |
LocalPathPrefixComposerSupport(boolean split,
String localPrefix,
boolean splitLocal,
String remotePrefix,
boolean splitRemote,
boolean splitRemoteRepository,
boolean splitRemoteRepositoryLast,
String releasesPrefix,
String snapshotsPrefix) |
Modifier and Type | Method and Description |
---|---|
String |
getPathPrefixForLocalArtifact(Artifact artifact)
Gets the path prefix for a locally installed artifact.
|
String |
getPathPrefixForLocalMetadata(Metadata metadata)
Gets the path prefix for locally installed metadata.
|
String |
getPathPrefixForRemoteArtifact(Artifact artifact,
RemoteRepository repository)
Gets the path prefix for an artifact cached from a remote repository.
|
String |
getPathPrefixForRemoteMetadata(Metadata metadata,
RemoteRepository repository)
Gets the path prefix for metadata cached from a remote repository.
|
protected boolean |
isSnapshot(Metadata metadata) |
protected final boolean split
protected final String localPrefix
protected final boolean splitLocal
protected final String remotePrefix
protected final boolean splitRemote
protected final boolean splitRemoteRepository
protected final boolean splitRemoteRepositoryLast
protected final String releasesPrefix
protected final String snapshotsPrefix
protected LocalPathPrefixComposerSupport(boolean split, String localPrefix, boolean splitLocal, String remotePrefix, boolean splitRemote, boolean splitRemoteRepository, boolean splitRemoteRepositoryLast, String releasesPrefix, String snapshotsPrefix)
public String getPathPrefixForLocalArtifact(Artifact artifact)
LocalPathPrefixComposer
getPathPrefixForLocalArtifact
in interface LocalPathPrefixComposer
artifact
- The artifact for which to determine the prefix, must not be null
.null
(note: null
s and empty strings are treated equally).public String getPathPrefixForRemoteArtifact(Artifact artifact, RemoteRepository repository)
LocalPathPrefixComposer
getPathPrefixForRemoteArtifact
in interface LocalPathPrefixComposer
artifact
- The artifact for which to determine the prefix, must not be null
.repository
- The remote repository, never null
.null
(note: null
s and empty strings are treated equally).public String getPathPrefixForLocalMetadata(Metadata metadata)
LocalPathPrefixComposer
getPathPrefixForLocalMetadata
in interface LocalPathPrefixComposer
metadata
- The metadata for which to determine the prefix, must not be null
.null
(note: null
s and empty strings are treated equally).public String getPathPrefixForRemoteMetadata(Metadata metadata, RemoteRepository repository)
LocalPathPrefixComposer
getPathPrefixForRemoteMetadata
in interface LocalPathPrefixComposer
metadata
- The metadata for which to determine the prefix, must not be null
.repository
- The remote repository, never null
.null
(note: null
s and empty strings are treated equally).protected boolean isSnapshot(Metadata metadata)
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.