|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.serviceclients.remotesearch.RemoteSearcher
public class RemoteSearcher
RemoteSearcher plays a role anaogous to SimpleLuceneIndex in the DDS, only it performs searches
for records using a DDS Web Service (version 1.0). RemoteSearcher employs the WebService
client to do the actual search (via the urlCheck method (so this
class can be thought of as a wrapper for the urlCheck Service).
A use case of RemoteSearcher follows:
searchDocs(java.lang.String), which in turn calls the
UrlCheck method of the WebServiceClient, and thenRemoteResultDoc
| Constructor Summary | |
|---|---|
RemoteSearcher(String ddsWebServicesBaseUrl,
MetadataVocab vocab)
Constructor for the RemoteSearcher object |
|
| Method Summary | |
|---|---|
void |
destroy()
|
GetRecordResponse |
getDocument(String id)
Gets the document attribute of the RemoteSearcher object |
GetRecordResponse |
getRecord(String id)
Gets the record attribute of the RemoteSearcher object |
MetadataVocab |
getVocab()
Gets the vocab attribute of the RemoteSearcher object |
WebServiceClient |
getWebServiceClient()
Gets the webServiceClient attribute of the RemoteSearcher object |
static void |
main(String[] args)
RemoteSearcher tester |
RemoteResultDoc[] |
searchDocs(String s)
analogus to SimpleLuceneIndex.searchDoc, performs a search and returns an array of RemoteResultDoc objects that represent the results of the
search. |
static void |
setDebug(boolean db)
Sets the debug attribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteSearcher(String ddsWebServicesBaseUrl,
MetadataVocab vocab)
ddsWebServicesBaseUrl - DDS Web Service URLvocab - MetadataVocab object used to parse search
results| Method Detail |
|---|
public MetadataVocab getVocab()
public WebServiceClient getWebServiceClient()
WebServiceClientpublic RemoteResultDoc[] searchDocs(String s)
RemoteResultDoc objects that represent the results of the
search. Note: the urlCheck WebService returns information about duplicate records (that don't match the query, but which refer to the same resource) returned as an alsoCatalogedBy element of MatchingRecord . These duplicates are treated as search results by searchDocs - they are expanded into RemoteResultDoc objects and added to the results returned.
s - Description of the Parameter
public GetRecordResponse getRecord(String id)
id - Description of the Parameter
public GetRecordResponse getDocument(String id)
id - Description of the Parameter
public void destroy()
public static void setDebug(boolean db)
db - The new debug valuepublic static void main(String[] args)
args - The command line arguments
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||