com.languagecomputer.api
Class EntityServiceWebClient

java.lang.Object
  extended by com.languagecomputer.api.BaseWebClient<EntityWebService>
      extended by com.languagecomputer.api.EntityServiceWebClient
All Implemented Interfaces:
AnnotationService, EntityService, Service

public class EntityServiceWebClient
extends BaseWebClient<EntityWebService>
implements EntityService

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

Since:
1.0
Author:
Kirk Roberts

Constructor Summary
EntityServiceWebClient(ServiceConfig serviceConfig)
          Creates a new EntityServiceWebClient with the given ServiceConfig.
 
Method Summary
 String getName()
          Returns the name of the service to use for URL lookup.
protected  Class<EntityWebService> 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

EntityServiceWebClient

public EntityServiceWebClient(ServiceConfig serviceConfig)
Creates a new EntityServiceWebClient 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<EntityWebService>

getWebServiceClass

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

Specified by:
getWebServiceClass in class BaseWebClient<EntityWebService>

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.