Class LegacyRepositorySystem.UnknownRepositoryLayout
- java.lang.Object
-
- org.apache.maven.repository.legacy.LegacyRepositorySystem.UnknownRepositoryLayout
-
- All Implemented Interfaces:
ArtifactRepositoryLayout
- Enclosing class:
- LegacyRepositorySystem
static class LegacyRepositorySystem.UnknownRepositoryLayout extends java.lang.Object implements ArtifactRepositoryLayout
In the future, the legacy system might encounter repository types for which no layout components exists because the actual communication with the repository happens via a repository connector. As a minimum, the legacy system needs to retain the id of this layout so that the content type of the remote repository can still be accurately described.
-
-
Field Summary
Fields Modifier and Type Field Description private ArtifactRepositoryLayoutfallbackprivate java.lang.Stringid-
Fields inherited from interface org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout
ROLE
-
-
Constructor Summary
Constructors Constructor Description UnknownRepositoryLayout(java.lang.String id, ArtifactRepositoryLayout fallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()java.lang.StringpathOf(Artifact artifact)java.lang.StringpathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)java.lang.StringpathOfRemoteRepositoryMetadata(ArtifactMetadata metadata)java.lang.StringtoString()
-
-
-
Field Detail
-
id
private final java.lang.String id
-
fallback
private final ArtifactRepositoryLayout fallback
-
-
Constructor Detail
-
UnknownRepositoryLayout
UnknownRepositoryLayout(java.lang.String id, ArtifactRepositoryLayout fallback)
-
-
Method Detail
-
getId
public java.lang.String getId()
- Specified by:
getIdin interfaceArtifactRepositoryLayout
-
pathOf
public java.lang.String pathOf(Artifact artifact)
- Specified by:
pathOfin interfaceArtifactRepositoryLayout
-
pathOfLocalRepositoryMetadata
public java.lang.String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
- Specified by:
pathOfLocalRepositoryMetadatain interfaceArtifactRepositoryLayout
-
pathOfRemoteRepositoryMetadata
public java.lang.String pathOfRemoteRepositoryMetadata(ArtifactMetadata metadata)
- Specified by:
pathOfRemoteRepositoryMetadatain interfaceArtifactRepositoryLayout
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-