com.languagecomputer.api
Class AnswerFusionWebServiceImpl

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

public class AnswerFusionWebServiceImpl
extends BaseWebServiceImpl
implements AnswerFusionWebService

Implementation of AnswerFusionWebService.

Since:
1.0
Author:
Kirk Roberts

Field Summary
 
Fields inherited from class com.languagecomputer.api.BaseWebServiceImpl
sessionManager
 
Constructor Summary
AnswerFusionWebServiceImpl(SessionManager sessionManager)
          Creates a new AnswerFusionWebServiceImpl using the given sessionManager.
 
Method Summary
 String fuseAnswers(String sessionID, String query, String answers, String format)
          Fuses answers to the query into a new list of answers.
 
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

AnswerFusionWebServiceImpl

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

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

fuseAnswers

public String fuseAnswers(String sessionID,
                          String query,
                          String answers,
                          String format)
                   throws Exception
Fuses answers to the query into a new list of answers.

Specified by:
fuseAnswers in interface AnswerFusionWebService
Parameters:
sessionID - The unique identifier String for the session for this operation.
query - The query in the format described in the format parameter.
answers - The answers in the format described in the format parameter.
format - The format in which the answers and query are in. Defaults to XML.
Returns:
The fused answers in the specified format.
Throws:
Exception - If there was an error fusing the answers.


Copyright © 2009. All Rights Reserved.