|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.languagecomputer.api.BaseWebClient<DocumentRetrievalWebService> com.languagecomputer.api.DocumentRetrievalServiceWebClient
public class DocumentRetrievalServiceWebClient
Web service client wrapper for the DocumentRetrievalService
.
Handles all the web service interaction code. Combined with the
DocumentRetrievalService
class, this provides a java-to-java
interaction that masks the web service functionality.
Constructor Summary | |
---|---|
DocumentRetrievalServiceWebClient(ServiceConfig serviceConfig)
Creates a new DocumentRetrievalServiceWebClient with the
given ServiceConfig . |
Method Summary | |
---|---|
String |
getName()
Returns the name of the service to use for URL lookup. |
protected Class<DocumentRetrievalWebService> |
getWebServiceClass()
Returns the BaseWebService class this BaseWebClient
wraps. |
List<QueryResult> |
retrieve(Query query)
Retrieves a List of sorted QueryResult s for the given
Query . |
void |
setPath(String path)
Sets the location used to retrieve documents. |
Methods inherited from class com.languagecomputer.api.BaseWebClient |
---|
disconnect, getSessionID, getWebService, registerSession, sessionRegistered, setSession, setSessionID, unregisterSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.languagecomputer.api.Service |
---|
setSession |
Constructor Detail |
---|
public DocumentRetrievalServiceWebClient(ServiceConfig serviceConfig)
DocumentRetrievalServiceWebClient
with the
given ServiceConfig
.
Method Detail |
---|
public String getName()
getName
in interface Service
getName
in class BaseWebClient<DocumentRetrievalWebService>
protected Class<DocumentRetrievalWebService> getWebServiceClass()
BaseWebService
class this BaseWebClient
wraps.
getWebServiceClass
in class BaseWebClient<DocumentRetrievalWebService>
public void setPath(String path) throws IOException
setPath
in interface DocumentRetrievalService
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.public List<QueryResult> retrieve(Query query)
List
of sorted QueryResult
s for the given
Query
.
retrieve
in interface DocumentRetrievalService
query
- The Query
to use. At least one of the query methods
must be non-null
.
List
of retrieved QueryResult
s. Will be
empty if this DocumentRetrievalService
cannot use any of
the non-null
query representations.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |