|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.repository.api.RemoteListSourceProvider
com.android.repository.impl.sources.RemoteListSourceProviderImpl
public class RemoteListSourceProviderImpl
A RepositorySourceProvider that downloads a list of sources.
| Nested Class Summary | |
|---|---|
static class |
RemoteListSourceProviderImpl.SiteList
Superclass 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 | |
|---|---|
RemoteListSourceProviderImpl(java.lang.String url,
SchemaModule sourceListModule,
java.util.Map<java.lang.Class<? extends RepositorySource>,java.util.Collection<SchemaModule>> permittedSchemaModules)
Create a RemoteListSourceProviderImpl |
|
| Method Summary | |
|---|---|
boolean |
addSource(RepositorySource source)
Not supported by this provider. |
java.util.List<RepositorySource> |
getSources(Downloader downloader,
SettingsController settingsController,
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. |
| Methods inherited from class com.android.repository.api.RemoteListSourceProvider |
|---|
create |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.URISyntaxException
RemoteListSourceProviderImpl
url - 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.| Method Detail |
|---|
@NonNull
public java.util.List<RepositorySource> getSources(@Nullable
Downloader downloader,
@Nullable
SettingsController settingsController,
@NonNull
ProgressIndicator progress,
boolean forceRefresh)
downloader - The Downloader to use to download the source list.
Required.settingsController - The SettingsController to use for the download settings.
Required if required by the downloader.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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||