com.languagecomputer.api
Class QuestionProcessingServiceWebClient

java.lang.Object
  extended by com.languagecomputer.api.BaseWebClient<QuestionProcessingWebService>
      extended by com.languagecomputer.api.QuestionProcessingServiceWebClient
All Implemented Interfaces:
QuestionProcessingService, Service

public class QuestionProcessingServiceWebClient
extends BaseWebClient<QuestionProcessingWebService>
implements QuestionProcessingService

Web service client wrapper for the QuestionProcessingService. Handles all the web service interaction code. Combined with the QuestionProcessingService class, this provides a java-to-java interaction that masks the web service functionality.

Since:
1.0
Author:
Kirk Roberts

Constructor Summary
QuestionProcessingServiceWebClient(ServiceConfig serviceConfig)
          Creates a new QuestionProcessingServiceWebClient with the given ServiceConfig.
 
Method Summary
 String getName()
          Returns the name of the service to use for URL lookup.
protected  Class<QuestionProcessingWebService> getWebServiceClass()
          Returns the BaseWebService class this BaseWebClient wraps.
 Query process(String question)
          Processes the given question, returning a new Query object that contains all the query representations that this QuestionProcessingService is capable of providing.
 
Methods inherited from class com.languagecomputer.api.BaseWebClient
disconnect, getSessionID, getWebService, registerSession, sessionRegistered, setSession, setSessionID, 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.Service
setSession
 

Constructor Detail

QuestionProcessingServiceWebClient

public QuestionProcessingServiceWebClient(ServiceConfig serviceConfig)
Creates a new QuestionProcessingServiceWebClient with the given ServiceConfig.

Method Detail

getName

public String getName()
Returns the name of the service to use for URL lookup.

Specified by:
getName in interface Service
Specified by:
getName in class BaseWebClient<QuestionProcessingWebService>

getWebServiceClass

protected Class<QuestionProcessingWebService> getWebServiceClass()
Returns the BaseWebService class this BaseWebClient wraps.

Specified by:
getWebServiceClass in class BaseWebClient<QuestionProcessingWebService>

process

public Query process(String question)
Processes the given question, returning a new Query object that contains all the query representations that this QuestionProcessingService is capable of providing.

Specified by:
process in interface QuestionProcessingService
Parameters:
question - The question String to process.
Returns:
A new Query generated from the given question.


Copyright © 2009. All Rights Reserved.