com.languagecomputer.api
Interface BaseWebService

All Known Subinterfaces:
AnnotationMetaWebService, AnswerExtractionWebService, AnswerFusionWebService, AttributeWebService, CoreferenceWebService, DocumentRetrievalWebService, DocumentWebService, DossierWebService, EntityWebService, EventWebService, IndexWebService, QuestionAnsweringWebService, QuestionAnswerPairWebService, QuestionProcessingWebService, SpatialWebService, SummarizationWebService, TemporalWebService
All Known Implementing Classes:
AnnotationMetaWebServiceImpl, AnswerExtractionWebServiceImpl, AnswerFusionWebServiceImpl, AttributeWebServiceImpl, BaseAnnotationWebServiceImpl, BaseWebServiceImpl, CoreferenceWebServiceImpl, DocumentRetrievalWebServiceImpl, DocumentWebServiceImpl, DossierWebServiceImpl, EntityWebServiceImpl, EventWebServiceImpl, IndexWebServiceImpl, QuestionAnsweringWebServiceImpl, QuestionAnswerPairWebServiceImpl, QuestionProcessingWebServiceImpl, SpatialWebServiceImpl, SummarizationWebServiceImpl, TemporalWebServiceImpl

public interface BaseWebService

Base interface for web service operations. Contains operations common to all web service endpoints.

Since:
1.0
Author:
Toby Jungen

Method Summary
 String registerSession()
          Registers a new session with this service.
 void unregisterSession(String sessionID)
          Unregisters a session from this service.
 

Method Detail

registerSession

String registerSession()
                       throws Exception
Registers a new session with this service. The session is used to track state.

Returns:
The unique identifier String for the created session.
Throws:
Exception - If there was an error creating the session.

unregisterSession

void unregisterSession(String sessionID)
                       throws Exception
Unregisters a session from this service. The session is used to track state.

Parameters:
sessionID - The unique identifier String for the session to unregister.
Throws:
Exception - If there was an error closing the session.


Copyright © 2009. All Rights Reserved.