com.languagecomputer.client
Class StreamingBatchWebClient

java.lang.Object
  extended by com.languagecomputer.client.WebClient
      extended by com.languagecomputer.client.BatchWebClient
          extended by com.languagecomputer.client.StreamingBatchWebClient

public class StreamingBatchWebClient
extends BatchWebClient

BatchWebClient that streams the file content to the server instead of sending the URL.

Since:
1.0
Author:
Kirk Roberts

Field Summary
 
Fields inherited from class com.languagecomputer.client.WebClient
ANNOTATION_META_SERVICE, ATTRIBUTE_SERVICE, COREFERENCE_SERVICE, DOCUMENT_SERVICE, ENTITY_SERVICE, EVENT_SERVICE, INDEX_SERVICE, SPATIAL_SERVICE, TEMPORAL_SERVICE
 
Constructor Summary
StreamingBatchWebClient(String host, List<String> services)
          Creates a new StreamingBatchWebClient with the services located on the given host.
 
Method Summary
static void main(String[] args)
          Client driver, called from command line.
protected  Document process(String file)
          Processes the given file as either a URL or File.
 
Methods inherited from class com.languagecomputer.client.BatchWebClient
getFiles, getHost, runBatch, setIndexPath
 
Methods inherited from class com.languagecomputer.client.WebClient
getAnnotationMetaService, getAttributeService, getConnectTimeout, getCoreferenceService, getDocumentService, getEntityService, getEventService, getIndexService, getPort, getReceiveTimeout, getSpatialService, getTemporalService, getURL, print, setSessionID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamingBatchWebClient

public StreamingBatchWebClient(String host,
                               List<String> services)
Creates a new StreamingBatchWebClient with the services located on the given host.

Method Detail

main

public static void main(String[] args)
                 throws Exception
Client driver, called from command line.

Parameters:
args - Command line arguments.
Throws:
Exception - In case of service call failure.

process

protected Document process(String file)
                    throws IOException
Description copied from class: BatchWebClient
Processes the given file as either a URL or File.

Overrides:
process in class BatchWebClient
Throws:
IOException


Copyright © 2009. All Rights Reserved.