Package com.android.repository.api
Class RemoteListSourceProvider
- java.lang.Object
-
- com.android.repository.api.RemoteListSourceProvider
-
- All Implemented Interfaces:
RepositorySourceProvider
- Direct Known Subclasses:
RemoteListSourceProviderImpl
public abstract class RemoteListSourceProvider extends java.lang.Object implements RepositorySourceProvider
AnRepositorySourceProviderthat retrievesRepositorySources from a remote location.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRemoteListSourceProvider.GenericSite
-
Constructor Summary
Constructors Constructor Description RemoteListSourceProvider()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RemoteListSourceProvidercreate(java.lang.String url, SchemaModule sourceListModule, java.util.Map<java.lang.Class<? extends RepositorySource>,java.util.Collection<SchemaModule<?>>> permittedSchemaModules)Creates a new provider.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.android.repository.api.RepositorySourceProvider
addSource, getSources, isModifiable, removeSource, save
-
-
-
-
Method Detail
-
create
@NonNull public static RemoteListSourceProvider create(@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
Creates a new provider.- Parameters:
url- The URL to download from.sourceListModule- Extension to the common source list schema, if any, used to parse the downloaded xml.permittedSchemaModules- TheSchemaModules that are allowed to be used by theRepositorySources created by this provider, depending on the actual type of site.- Returns:
- The created provider.
- Throws:
java.net.URISyntaxException- Ifurlis invalid.
-
-