|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.languagecomputer.api.BaseWebClient<QuestionProcessingWebService> com.languagecomputer.api.QuestionProcessingServiceWebClient
public class QuestionProcessingServiceWebClient
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.
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 |
---|
public QuestionProcessingServiceWebClient(ServiceConfig serviceConfig)
QuestionProcessingServiceWebClient
with the
given ServiceConfig
.
Method Detail |
---|
public String getName()
getName
in interface Service
getName
in class BaseWebClient<QuestionProcessingWebService>
protected Class<QuestionProcessingWebService> getWebServiceClass()
BaseWebService
class this BaseWebClient
wraps.
getWebServiceClass
in class BaseWebClient<QuestionProcessingWebService>
public Query process(String question)
Query
object that contains all the query representations that this
QuestionProcessingService
is capable of providing.
process
in interface QuestionProcessingService
question
- The question String
to process.
Query
generated from the given question.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |