com.languagecomputer.api
Class AnswerExtractionWebServiceImpl

java.lang.Object
  extended by com.languagecomputer.api.BaseWebServiceImpl
      extended by com.languagecomputer.api.AnswerExtractionWebServiceImpl
All Implemented Interfaces:
AnswerExtractionWebService, BaseWebService

public class AnswerExtractionWebServiceImpl
extends BaseWebServiceImpl
implements AnswerExtractionWebService

Implementation of AnswerExtractionWebService.

Since:
1.0
Author:
Kirk Roberts

Field Summary
 
Fields inherited from class com.languagecomputer.api.BaseWebServiceImpl
sessionManager
 
Constructor Summary
AnswerExtractionWebServiceImpl(SessionManager sessionManager)
          Creates a new AnswerExtractionWebServiceImpl using the given sessionManager.
 
Method Summary
 String extractAnswers(String sessionID, String query, String queryResults, String format)
          Extracts answers to the query from a set of query results.
 
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

AnswerExtractionWebServiceImpl

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

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

extractAnswers

public String extractAnswers(String sessionID,
                             String query,
                             String queryResults,
                             String format)
                      throws Exception
Extracts answers to the query from a set of query results.

Specified by:
extractAnswers in interface AnswerExtractionWebService
Parameters:
sessionID - The unique identifier String for the session for this operation.
query - The query in the format described in the format parameter.
queryResults - The query result (documents) in the format described in the format.
format - The format in which the queryResults and query are in and which the answers should be returned. Defaults to XML.
Returns:
The extracted answers for the query from the given queryResults.
Throws:
Exception - If there was an error extracting answers.


Copyright © 2009. All Rights Reserved.