com.languagecomputer.api
Class EventServiceWebClient

java.lang.Object
  extended by com.languagecomputer.api.BaseWebClient<EventWebService>
      extended by com.languagecomputer.api.EventServiceWebClient
All Implemented Interfaces:
AnnotationService, EventService, Service

public class EventServiceWebClient
extends BaseWebClient<EventWebService>
implements EventService

Web service client wrapper for the EventService. Handles all the web service interaction code. Combined with the EventService class, this provides a java-to-java interaction that masks the web service functionality.

Since:
1.0
Author:
Kirk Roberts

Constructor Summary
EventServiceWebClient(ServiceConfig serviceConfig)
          Creates a new EventServiceWebClient with the given ServiceConfig.
 
Method Summary
 String getName()
          Returns the name of the service to use for URL lookup.
protected  Class<EventWebService> getWebServiceClass()
          Returns the BaseWebService class this BaseWebClient wraps.
 void process(Document document)
          Annotates the given Document, attaching the results as Text objects.
 
Methods inherited from class com.languagecomputer.api.BaseWebClient
disconnect, getSessionID, getWebService, registerSession, sessionRegistered, setSession, setSessionID, 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.Service
setSession
 

Constructor Detail

EventServiceWebClient

public EventServiceWebClient(ServiceConfig serviceConfig)
Creates a new EventServiceWebClient with the given ServiceConfig.

Method Detail

getName

public String getName()
Returns the name of the service to use for URL lookup.

Specified by:
getName in interface Service
Specified by:
getName in class BaseWebClient<EventWebService>

getWebServiceClass

protected Class<EventWebService> getWebServiceClass()
Returns the BaseWebService class this BaseWebClient wraps.

Specified by:
getWebServiceClass in class BaseWebClient<EventWebService>

process

public void process(Document document)
Annotates the given Document, attaching the results as Text objects.

Specified by:
process in interface AnnotationService
Parameters:
document - Document to process.


Copyright © 2009. All Rights Reserved.