com.languagecomputer.api
Class BaseWebServiceImpl

java.lang.Object
  extended by com.languagecomputer.api.BaseWebServiceImpl
All Implemented Interfaces:
BaseWebService
Direct Known Subclasses:
AnnotationMetaWebServiceImpl, AnswerExtractionWebServiceImpl, AnswerFusionWebServiceImpl, BaseAnnotationWebServiceImpl, DocumentRetrievalWebServiceImpl, DocumentWebServiceImpl, DossierWebServiceImpl, IndexWebServiceImpl, QuestionAnsweringWebServiceImpl, QuestionProcessingWebServiceImpl, SummarizationWebServiceImpl

public abstract class BaseWebServiceImpl
extends Object
implements BaseWebService

Implementation of web service operations. Contains operations common to all web service endpoints.

Since:
1.0
Author:
Toby Jungen

Field Summary
protected  SessionManager sessionManager
           
 
Constructor Summary
BaseWebServiceImpl(SessionManager sessionManager)
          Creates a new BaseWebServiceImpl with the given SessionManager.
 
Method Summary
 String registerSession()
          Registers a new session with this service.
 void unregisterSession(String sessionID)
          Unregisters a session from this service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionManager

protected SessionManager sessionManager
Constructor Detail

BaseWebServiceImpl

public BaseWebServiceImpl(SessionManager sessionManager)
Creates a new BaseWebServiceImpl with the given SessionManager. Builds the necessary state from the configuration File.

Parameters:
sessionManager - The SessionManager used to create and access Sessions
Method Detail

registerSession

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

Specified by:
registerSession in interface BaseWebService
Returns:
The unique identifier String for the created session.
Throws:
Exception - If there was an error creating the session.

unregisterSession

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

Specified by:
unregisterSession in interface BaseWebService
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.