|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.languagecomputer.api.BaseWebClient<AnswerExtractionWebService> com.languagecomputer.api.AnswerExtractionServiceWebClient
public class AnswerExtractionServiceWebClient
Web service client wrapper for the AnswerExtractionService
.
Handles all the web service interaction code. Combined with the
AnswerExtractionService
class, this provides a java-to-java
interaction that masks the web service functionality.
Constructor Summary | |
---|---|
AnswerExtractionServiceWebClient(ServiceConfig serviceConfig)
Creates a new AnswerExtractionServiceWebClient with the
given ServiceConfig . |
Method Summary | |
---|---|
List<Answer> |
extractAnswers(Query query,
List<QueryResult> queryResults)
Extracts Answer s for the given Query from the given
QueryResult s. |
String |
getName()
Returns the name of the service to use for URL lookup. |
protected Class<AnswerExtractionWebService> |
getWebServiceClass()
Returns the BaseWebService class this BaseWebClient
wraps. |
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 AnswerExtractionServiceWebClient(ServiceConfig serviceConfig)
AnswerExtractionServiceWebClient
with the
given ServiceConfig
.
Method Detail |
---|
public String getName()
getName
in interface Service
getName
in class BaseWebClient<AnswerExtractionWebService>
protected Class<AnswerExtractionWebService> getWebServiceClass()
BaseWebService
class this BaseWebClient
wraps.
getWebServiceClass
in class BaseWebClient<AnswerExtractionWebService>
public List<Answer> extractAnswers(Query query, List<QueryResult> queryResults)
Answer
s for the given Query
from the given
QueryResult
s.
extractAnswers
in interface AnswerExtractionService
query
- Query
to find Answer
s for.queryResults
- QueryResult
s to find Answer
s to
the query in.
List
of sorted Answer
s to the given
query.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |