|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gcube.opensearch.opensearchoperator.resource.LocalResourceRepository
public class LocalResourceRepository
Class implementing the ResourceRepository interface that is used to store and retrieve OpenSearch resources in the absence of an InformationSystem
Constructor Summary | |
---|---|
LocalResourceRepository(java.io.File schemaFile)
Creates a new LocalResourceRepository |
Method Summary | |
---|---|
void |
add(OpenSearchResource resource)
Adds a pre-processed OpenSearchResource to the repository |
void |
add(java.lang.String dirPath)
Retrieves all OpenSearch resources, whose XML representations are contained in a directory with a given path and adds them to the repository |
void |
addURL(java.lang.String resourceURL)
Adds an OpenSearch resource whose XML representation is retrieved through a URL to the repository |
OpenSearchResource |
get(java.lang.String descriptionDocURL)
Retrieves an OpenSearchResource identified by the description document URL of the OpenSearch provider associated with it |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalResourceRepository(java.io.File schemaFile)
schemaFile
- The XSD of the OpenSearch resource that will be used to validate the XML
representation of the OpenSearch resources retrieved. This is an optional parameter and can
be left null if no validation is to be performed.Method Detail |
---|
public void add(java.lang.String dirPath) throws java.lang.Exception
dirPath
- The path of the directory to look for OpenSearch resources
java.lang.Exception
- In case of errorpublic void addURL(java.lang.String resourceURL) throws java.lang.Exception
resourceURL
- The URL of the OpenSearch resource
java.lang.Exception
- In case of errorpublic void add(OpenSearchResource resource)
resource
- The OpenSearch resource to be added to the repositorypublic OpenSearchResource get(java.lang.String descriptionDocURL) throws java.lang.Exception
get
in interface ResourceRepository
descriptionDocURL
- The URL of the description document associated with the OpenSearch
provider associated with the OpenSearchResource to be retrieved
java.lang.Exception
ResourceRepository.get(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |