com.languagecomputer.api
Class DossierWebServiceImpl

java.lang.Object
  extended by com.languagecomputer.api.BaseWebServiceImpl
      extended by com.languagecomputer.api.DossierWebServiceImpl
All Implemented Interfaces:
BaseWebService, DossierWebService

public class DossierWebServiceImpl
extends BaseWebServiceImpl
implements DossierWebService

Implementation of DossierWebService.

Since:
1.0
Author:
Toby Jungen

Field Summary
protected  DocumentXML xmlConverter
           
 
Fields inherited from class com.languagecomputer.api.BaseWebServiceImpl
sessionManager
 
Constructor Summary
DossierWebServiceImpl(SessionManager sessionManager)
          Creates a new DossierWebServiceImpl using the given sessionManager.
 
Method Summary
 String obtain(String sessionID, String name)
          Annotates the provided document with coreference information.
 void process(String sessionID, String document, String format)
          Identifies any dossier attributes in the provided document.
 
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.BaseWebService
registerSession, unregisterSession
 

Field Detail

xmlConverter

protected DocumentXML xmlConverter
Constructor Detail

DossierWebServiceImpl

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

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

process

public void process(String sessionID,
                    String document,
                    String format)
             throws Exception
Identifies any dossier attributes in the provided document.

Specified by:
process in interface DossierWebService
Parameters:
sessionID - The unique identifier String for the session for this operation.
document - The document in the format described in the format parameter.
format - The format of the document. Defaults to XML.
Throws:
Exception - If there was an error processing the document.

obtain

public String obtain(String sessionID,
                     String name)
              throws Exception
Annotates the provided document with coreference information.

Specified by:
obtain in interface DossierWebService
Parameters:
sessionID - The unique identifier String for the session for this operation.
name - The name of the dossier to retrieve.
Returns:
The list of dossiers that match the specified name. May be empty.
Throws:
Exception - If there was an error obtaining the dossier.


Copyright © 2009. All Rights Reserved.