com.languagecomputer.api
Class QuestionAnsweringWebServiceImpl
java.lang.Object
com.languagecomputer.api.BaseWebServiceImpl
com.languagecomputer.api.QuestionAnsweringWebServiceImpl
- All Implemented Interfaces:
- BaseWebService, QuestionAnsweringWebService
public class QuestionAnsweringWebServiceImpl
- extends BaseWebServiceImpl
- implements QuestionAnsweringWebService
Implementation of QuestionAnsweringWebService
.
- Since:
- 1.0
- Author:
- Kirk Roberts
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuestionAnsweringWebServiceImpl
public QuestionAnsweringWebServiceImpl(SessionManager sessionManager)
- Creates a new
QuestionAnsweringWebServiceImpl
using the given
sessionManager.
- Parameters:
sessionManager
- The SessionManager
to use for Session
control.
getAnswers
public String getAnswers(String sessionID,
String query,
String format)
throws Exception
- Returns answers to the query.
- Specified by:
getAnswers
in interface QuestionAnsweringWebService
- Parameters:
sessionID
- The unique identifier String
for the session
for this operation.format
- The format in which the answers should be returned. Defaults
to XML
.
- Returns:
- The answers.
- Throws:
Exception
- If there was an error answering the question.
Copyright © 2009. All Rights Reserved.