|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.languagecomputer.api.BaseWebClient<QuestionAnsweringWebService>
com.languagecomputer.api.QuestionAnsweringServiceWebClient
public class QuestionAnsweringServiceWebClient
Web service client wrapper for the QuestionAnsweringService.
Handles all the web service interaction code. Combined with the
QuestionAnsweringService class, this provides a java-to-java
interaction that masks the web service functionality.
| Constructor Summary | |
|---|---|
QuestionAnsweringServiceWebClient(ServiceConfig serviceConfig)
Creates a new QuestionAnsweringServiceWebClient with the
given ServiceConfig. |
|
| Method Summary | |
|---|---|
List<Answer> |
getAnswers(Query query)
Finds answers to the given Query (optional operation). |
List<Answer> |
getAnswers(String question)
Finds answers to the given question. The QuestionAnsweringWebService does not support this method, so
calls are redirected to getAnswers(Query). |
String |
getName()
Returns the name of the service to use for URL lookup. |
protected Class<QuestionAnsweringWebService> |
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 QuestionAnsweringServiceWebClient(ServiceConfig serviceConfig)
QuestionAnsweringServiceWebClient with the
given ServiceConfig.
| Method Detail |
|---|
public String getName()
getName in interface ServicegetName in class BaseWebClient<QuestionAnsweringWebService>protected Class<QuestionAnsweringWebService> getWebServiceClass()
BaseWebService class this BaseWebClient
wraps.
getWebServiceClass in class BaseWebClient<QuestionAnsweringWebService>public List<Answer> getAnswers(String question)
QuestionAnsweringWebService does not support this method, so
calls are redirected to getAnswers(Query).
getAnswers in interface QuestionAnsweringServicequestion - The String question to find answers to.
Cannot be null.
List of Answers to the question.public List<Answer> getAnswers(Query query)
Query (optional operation). This method
may optionally be implemented in order to allow the caller to override
specific elements of the Query.
getAnswers in interface QuestionAnsweringServicequery - The Query to find answers to. Cannot be
null.
List of Answers to the question.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||