com.languagecomputer.api
Class BaseWebServiceImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sessionManager
protected SessionManager sessionManager
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
Session
s
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.