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