com.languagecomputer.api
Class SpatialWebServiceImpl

java.lang.Object
  extended by com.languagecomputer.api.BaseWebServiceImpl
      extended by com.languagecomputer.api.BaseAnnotationWebServiceImpl
          extended by com.languagecomputer.api.SpatialWebServiceImpl
All Implemented Interfaces:
BaseWebService, SpatialWebService

public class SpatialWebServiceImpl
extends BaseAnnotationWebServiceImpl
implements SpatialWebService

Implementation of SpatialWebService.

Since:
1.0
Author:
Kirk Roberts

Field Summary
 
Fields inherited from class com.languagecomputer.api.BaseAnnotationWebServiceImpl
xmlConverter
 
Fields inherited from class com.languagecomputer.api.BaseWebServiceImpl
sessionManager
 
Constructor Summary
SpatialWebServiceImpl(SessionManager sessionManager)
          Creates a new SpatialWebServiceImpl using the given configFile.
 
Method Summary
protected  AnnotationService getAnnotationService(String sessionID)
          Returns the SpatialService.
protected  AnnotationType getAnnotationType()
          Returns SpatialSpan.TYPE.
 
Methods inherited from class com.languagecomputer.api.BaseAnnotationWebServiceImpl
process
 
Methods inherited from class com.languagecomputer.api.BaseWebServiceImpl
registerSession, 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.SpatialWebService
process
 
Methods inherited from interface com.languagecomputer.api.BaseWebService
registerSession, unregisterSession
 

Constructor Detail

SpatialWebServiceImpl

public SpatialWebServiceImpl(SessionManager sessionManager)
Creates a new SpatialWebServiceImpl using the given configFile.

Parameters:
sessionManager - The SessionManager to use for Session control.
Method Detail

getAnnotationService

protected AnnotationService getAnnotationService(String sessionID)
                                          throws Exception
Returns the SpatialService.

Specified by:
getAnnotationService in class BaseAnnotationWebServiceImpl
Parameters:
sessionID - The ID of the current Session.
Returns:
The Session's SpatialService instance.
Throws:
Exception - If an error occurs retrieving the service.

getAnnotationType

protected AnnotationType getAnnotationType()
Returns SpatialSpan.TYPE.

Specified by:
getAnnotationType in class BaseAnnotationWebServiceImpl
Returns:
SpatialSpan.TYPE.


Copyright © 2009. All Rights Reserved.