Class FilteringRepositoryConnector
java.lang.Object
org.eclipse.aether.internal.impl.filter.FilteringRepositoryConnector
- All Implemented Interfaces:
Closeable
,AutoCloseable
,RepositoryConnector
A filtering connector that filter transfers using remote repository filter and delegates to another connector.
- Since:
- 1.9.0
-
Constructor Summary
ConstructorDescriptionFilteringRepositoryConnector
(RemoteRepository remoteRepository, RepositoryConnector delegate, RemoteRepositoryFilter remoteRepositoryFilter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this connector and frees any network resources associated with it.void
get
(Collection<? extends ArtifactDownload> artifactDownloads, Collection<? extends MetadataDownload> metadataDownloads) Performs the specified downloads.void
put
(Collection<? extends ArtifactUpload> artifactUploads, Collection<? extends MetadataUpload> metadataUploads) Performs the specified uploads.toString()
-
Constructor Details
-
FilteringRepositoryConnector
public FilteringRepositoryConnector(RemoteRepository remoteRepository, RepositoryConnector delegate, RemoteRepositoryFilter remoteRepositoryFilter)
-
-
Method Details
-
close
Description copied from interface:RepositoryConnector
Closes this connector and frees any network resources associated with it. Once closed, a connector must not be used for further transfers, any attempt to do so would yield aIllegalStateException
or similar. Closing an already closed connector is harmless and has no effect.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceRepositoryConnector
-
get
public void get(Collection<? extends ArtifactDownload> artifactDownloads, Collection<? extends MetadataDownload> metadataDownloads) Description copied from interface:RepositoryConnector
Performs the specified downloads. If a download fails, the connector stores the underlying exception in the download object such that callers can inspect the result viaArtifactTransfer.getException()
andMetadataTransfer.getException()
, respectively. If reasonable, a connector should continue to process the remaining downloads after an error to retrieve as many items as possible. The connector may perform the transfers concurrently and in any order.- Specified by:
get
in interfaceRepositoryConnector
- Parameters:
artifactDownloads
- The artifact downloads to perform, may benull
or empty.metadataDownloads
- The metadata downloads to perform, may benull
or empty.
-
put
public void put(Collection<? extends ArtifactUpload> artifactUploads, Collection<? extends MetadataUpload> metadataUploads) Description copied from interface:RepositoryConnector
Performs the specified uploads. If an upload fails, the connector stores the underlying exception in the upload object such that callers can inspect the result viaArtifactTransfer.getException()
andMetadataTransfer.getException()
, respectively. The connector may perform the transfers concurrently and in any order.- Specified by:
put
in interfaceRepositoryConnector
- Parameters:
artifactUploads
- The artifact uploads to perform, may benull
or empty.metadataUploads
- The metadata uploads to perform, may benull
or empty.
-
toString
-