com.languagecomputer.api
Class QuestionAnsweringWebServiceImpl

java.lang.Object
  extended by com.languagecomputer.api.BaseWebServiceImpl
      extended by 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

Field Summary
 
Fields inherited from class com.languagecomputer.api.BaseWebServiceImpl
sessionManager
 
Constructor Summary
QuestionAnsweringWebServiceImpl(SessionManager sessionManager)
          Creates a new QuestionAnsweringWebServiceImpl using the given sessionManager.
 
Method Summary
 String getAnswers(String sessionID, String query, String format)
          Returns answers to the query.
 
Methods inherited from class com.languagecomputer.api.BaseWebServiceImpl
registerSession, 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.BaseWebService
registerSession, unregisterSession
 

Constructor Detail

QuestionAnsweringWebServiceImpl

public QuestionAnsweringWebServiceImpl(SessionManager sessionManager)
Creates a new QuestionAnsweringWebServiceImpl using the given sessionManager.

Parameters:
sessionManager - The SessionManager to use for Session control.
Method Detail

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.