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