com.android.repository.api
Class RemoteListSourceProvider

java.lang.Object
  extended by com.android.repository.api.RemoteListSourceProvider
All Implemented Interfaces:
RepositorySourceProvider
Direct Known Subclasses:
RemoteListSourceProviderImpl

public abstract class RemoteListSourceProvider
extends java.lang.Object
implements RepositorySourceProvider

An RepositorySourceProvider that retrieves RepositorySources from a remote location.


Nested Class Summary
static interface RemoteListSourceProvider.GenericSite
           
 
Constructor Summary
RemoteListSourceProvider()
           
 
Method Summary
static RemoteListSourceProvider create(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
 

Constructor Detail

RemoteListSourceProvider

public RemoteListSourceProvider()
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 - The SchemaModules that are allowed to be used by the RepositorySources created by this provider, depending on the actual type of site.
Returns:
The created provider.
Throws:
java.net.URISyntaxException - If url is invalid.