Class RemoteListSourceProvider

    • 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.