|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DocumentRetrievalWebService
Interface for document retrieval web service. Takes in a query and returns a list of query results.
Method Summary | |
---|---|
String |
retrieve(String sessionID,
String query,
String format)
Retrieves a list of results for the given query. |
void |
setPath(String sessionID,
String path)
Sets the location used to retrieve documents. |
Methods inherited from interface com.languagecomputer.api.BaseWebService |
---|
registerSession, unregisterSession |
Method Detail |
---|
void setPath(String sessionID, String path) throws Exception
sessionID
- The unique identifier String
for the session
for this operation.path
- The location to search for documents.
IOException
- If there is an issue accessing any I/O component
required by the DocumentRetrievalService
. Implementors
may or may not validate the path and throw an exception if it is
inaccessible.
Exception
String retrieve(String sessionID, String query, String format) throws Exception
sessionID
- The unique identifier String
for the session
for this operation.query
- The query in the format described in the format
parameter.format
- The format in which the query is in and in which
the query results should be returned. Defaults to XML
.
Exception
- If there was an error retrieving documents.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |