public class RemoteListSourceProviderImpl extends RemoteListSourceProvider
RepositorySourceProvider that downloads a list of sources.| Modifier and Type | Class and Description |
|---|---|
static class |
RemoteListSourceProviderImpl.SiteList
Superclass for xjc-created JAXB-usable classes into which a site list can be unmarshalled.
|
RemoteListSourceProvider.GenericSite| Constructor and Description |
|---|
RemoteListSourceProviderImpl(java.lang.String url,
SchemaModule sourceListModule,
java.util.Map<java.lang.Class<? extends RepositorySource>,java.util.Collection<SchemaModule<?>>> permittedSchemaModules)
Create a
RemoteListSourceProviderImpl |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addSource(RepositorySource source)
Not supported by this provider.
|
java.util.List<RepositorySource> |
getSources(Downloader downloader,
ProgressIndicator progress,
boolean forceRefresh)
Gets the sources from this provider.
|
boolean |
isModifiable()
Not supported by this provider.
|
boolean |
removeSource(RepositorySource source)
Not supported by this provider.
|
void |
save(ProgressIndicator progress)
Not supported by this provider.
|
createpublic RemoteListSourceProviderImpl(@NonNull
java.lang.String url,
@Nullable
SchemaModule sourceListModule,
@NonNull
java.util.Map<java.lang.Class<? extends RepositorySource>,java.util.Collection<SchemaModule<?>>> permittedSchemaModules)
throws java.net.URISyntaxException
RemoteListSourceProviderImplurl - The URL to download fromsourceListModule - Extension to the common source list schema, if any.permittedSchemaModules - Map of concrete RepositorySource type, as defined in
sourceListModule, to collection of SchemaModules allowed to be used by that source type.java.net.URISyntaxException - If url can't be parsed into a URL.@NonNull public java.util.List<RepositorySource> getSources(@Nullable Downloader downloader, @NonNull ProgressIndicator progress, boolean forceRefresh)
downloader - The Downloader to use to download the source list.
Required.progress - ProgressIndicator for logging.forceRefresh - If true, this provider should refresh its list of sources, rather
than return cached ones.RepositorySources.public boolean addSource(@NonNull
RepositorySource source)
source - The source to add.false.public boolean isModifiable()
false.public void save(@NonNull
ProgressIndicator progress)
public boolean removeSource(@NonNull
RepositorySource source)
source - The source to remove.false.RepositorySourceProvider.addSource(RepositorySource)