@ProviderType public interface SearchableRepository
| Modifier and Type | Interface and Description |
|---|---|
static class |
SearchableRepository.ResourceDescriptor
Describes a resource that is a member of the underlying remote
repository.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addResource(SearchableRepository.ResourceDescriptor resource)
Add a resource descriptors to the underlying repository.
|
java.net.URI |
browse(java.lang.String searchString)
Return the URL to a web page that allows browsing or searching of the
repository.
|
java.util.Set<SearchableRepository.ResourceDescriptor> |
findResources(org.osgi.resource.Requirement requirement,
boolean includeDependencies)
Find a set of resources that match the given requirement.This is intended
to be used to provide extra resources when a resolve fails.
|
java.util.Set<SearchableRepository.ResourceDescriptor> |
getResources(java.net.URI url,
boolean includeDependencies)
Convert a URL to a set of resource descriptors.
|
java.util.Set<SearchableRepository.ResourceDescriptor> |
query(java.lang.String query)
Search a repository and return a set of resource descriptors that match
the query.
|
java.util.Set<SearchableRepository.ResourceDescriptor> getResources(java.net.URI url, boolean includeDependencies) throws java.lang.Exception
url - the dropped urlincludeDependencies - Include any dependent revisionsjava.lang.Exceptionjava.util.Set<SearchableRepository.ResourceDescriptor> query(java.lang.String query) throws java.lang.Exception
query - The query syntaxjava.lang.Exceptionboolean addResource(SearchableRepository.ResourceDescriptor resource) throws java.lang.Exception
resource - the descriptor to addjava.lang.Exceptionjava.util.Set<SearchableRepository.ResourceDescriptor> findResources(org.osgi.resource.Requirement requirement, boolean includeDependencies) throws java.lang.Exception
requirement - The requirement to matchincludeDependencies - Include any dependent revisionsjava.lang.Exceptionjava.net.URI browse(java.lang.String searchString)
throws java.lang.Exception
searchString - A search string, or null for general browsingjava.lang.Exception