com.languagecomputer.api
Class SummarizationWebServiceImpl

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

public class SummarizationWebServiceImpl
extends BaseWebServiceImpl
implements SummarizationWebService

Implementation of SummarizationWebService.

Since:
1.0
Author:
Kirk Roberts

Field Summary
 
Fields inherited from class com.languagecomputer.api.BaseWebServiceImpl
sessionManager
 
Constructor Summary
SummarizationWebServiceImpl(SessionManager sessionManager)
          Creates a new SummarizationWebServiceImpl using the given sessionManager.
 
Method Summary
 String summarize(String sessionID, String documents, String query, String format)
          Summarizes the documents with the (optional) query.
 
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
 

Constructor Detail

SummarizationWebServiceImpl

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

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

summarize

public String summarize(String sessionID,
                        String documents,
                        String query,
                        String format)
                 throws Exception
Summarizes the documents with the (optional) query.

Specified by:
summarize in interface SummarizationWebService
Parameters:
sessionID - The unique identifier String for the session for this operation.
documents - The documents to summarize in the format described in the format.
query - The optional query in the format described in the format parameter.
format - The format in which the documents and query are in. Defaults to XML.
Returns:
The summary of the documents.
Throws:
Exception - If there was an error processing the document.


Copyright © 2009. All Rights Reserved.