Class RemoteListSourceProviderImpl
- java.lang.Object
-
- com.android.repository.api.RemoteListSourceProvider
-
- com.android.repository.impl.sources.RemoteListSourceProviderImpl
-
- All Implemented Interfaces:
RepositorySourceProvider
public class RemoteListSourceProviderImpl extends RemoteListSourceProvider
ARepositorySourceProviderthat downloads a list of sources.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRemoteListSourceProviderImpl.SiteListSuperclass for xjc-created JAXB-usable classes into which a site list can be unmarshalled.-
Nested classes/interfaces inherited from class com.android.repository.api.RemoteListSourceProvider
RemoteListSourceProvider.GenericSite
-
-
Constructor Summary
Constructors Constructor Description RemoteListSourceProviderImpl(java.lang.String url, SchemaModule sourceListModule, java.util.Map<java.lang.Class<? extends RepositorySource>,java.util.Collection<SchemaModule<?>>> permittedSchemaModules)Create aRemoteListSourceProviderImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddSource(RepositorySource source)Not supported by this provider.java.util.List<RepositorySource>getSources(Downloader downloader, ProgressIndicator progress, boolean forceRefresh)Gets the sources from this provider.booleanisModifiable()Not supported by this provider.booleanremoveSource(RepositorySource source)Not supported by this provider.voidsave(ProgressIndicator progress)Not supported by this provider.-
Methods inherited from class com.android.repository.api.RemoteListSourceProvider
create
-
-
-
-
Constructor Detail
-
RemoteListSourceProviderImpl
public 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.URISyntaxExceptionCreate aRemoteListSourceProviderImpl- Parameters:
url- The URL to download fromsourceListModule- Extension to the common source list schema, if any.permittedSchemaModules- Map of concreteRepositorySourcetype, as defined insourceListModule, to collection ofSchemaModules allowed to be used by that source type.- Throws:
java.net.URISyntaxException- Ifurlcan't be parsed into a URL.
-
-
Method Detail
-
getSources
@NonNull public java.util.List<RepositorySource> getSources(@Nullable Downloader downloader, @NonNull ProgressIndicator progress, boolean forceRefresh)
Gets the sources from this provider.- Parameters:
downloader- TheDownloaderto use to download the source list. Required.progress-ProgressIndicatorfor logging.forceRefresh- If true, this provider should refresh its list of sources, rather than return cached ones.- Returns:
- The fetched
RepositorySources.
-
addSource
public boolean addSource(@NonNull RepositorySource source)Not supported by this provider.- Parameters:
source- The source to add.- Returns:
false.
-
isModifiable
public boolean isModifiable()
Not supported by this provider.- Returns:
false.
-
save
public void save(@NonNull ProgressIndicator progress)Not supported by this provider.
-
removeSource
public boolean removeSource(@NonNull RepositorySource source)Not supported by this provider.- Parameters:
source- The source to remove.- Returns:
false.- See Also:
RepositorySourceProvider.addSource(RepositorySource)
-
-