com.languagecomputer.api
Class QuestionProcessingWebServiceImpl

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

Field Summary
 
Fields inherited from class com.languagecomputer.api.BaseWebServiceImpl
sessionManager
 
Constructor Summary
QuestionProcessingWebServiceImpl(SessionManager sessionManager)
          Creates a new QuestionProcessingWebServiceImpl using the given sessionManager.
 
Method Summary
 String process(String sessionID, String question, String format)
          Creates a query from the question.
 
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

QuestionProcessingWebServiceImpl

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

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

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.