public class Vinci extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Vinci.AFFactory |
| Modifier and Type | Field and Description |
|---|---|
static String |
VNS_HOST |
static String |
VNS_PORT |
| Constructor and Description |
|---|
Vinci() |
| Modifier and Type | Method and Description |
|---|---|
static String |
extractKEYSAsString(org.apache.vinci.transport.document.AFrame frame) |
static String |
getContentFromDATACas(org.apache.uima.cas_data.CasData aCas) |
static String |
getFeatureValueByType(org.apache.uima.cas_data.CasData aCAS,
String featureName) |
static org.apache.vinci.transport.document.AFrame |
produceAFrame(String cmd,
String content) |
static org.apache.vinci.transport.document.AFrame |
replyWithAnalysis(org.apache.vinci.transport.BaseClient conn,
org.apache.vinci.transport.VinciFrame requestFrame)
Package the
VinciFrame containing result of the requested
operation into a Vinci Data frame. |
static org.apache.vinci.transport.document.AFrame |
replyWithAnalysis(org.apache.vinci.transport.VinciClient conn,
org.apache.vinci.transport.VinciFrame requestFrame)
Package the
VinciFrame containing result of the requested
operation into a Vinci Data frame. |
org.apache.vinci.transport.VinciFrame |
replyWithError(String errorMsg)
Creates and populates an error frame.
|
static String |
stripVinciFrame(org.apache.vinci.transport.VinciFrame aFrame)
Returns a content from a given VinciFrame.
|
public static final String VNS_HOST
public static final String VNS_PORT
public org.apache.vinci.transport.VinciFrame replyWithError(String errorMsg)
errorMsg - -
error message to place in the error frameVinciFrame instance containing errorpublic static org.apache.vinci.transport.document.AFrame replyWithAnalysis(org.apache.vinci.transport.BaseClient conn,
org.apache.vinci.transport.VinciFrame requestFrame)
throws Exception
VinciFrame containing result of the requested
operation into a Vinci Data frame.conn - the connectionrequestFrame - VinciFrame
containing result of thsi service operationVinciFrame VinciData frame.Exception - -public static org.apache.vinci.transport.document.AFrame replyWithAnalysis(org.apache.vinci.transport.VinciClient conn,
org.apache.vinci.transport.VinciFrame requestFrame)
throws Exception
VinciFrame containing result of the requested
operation into a Vinci Data frame.conn - the connectionrequestFrame - VinciFrame
containing result of thsi service operationVinciFrame VinciData frame.Exceptionpublic static org.apache.vinci.transport.document.AFrame produceAFrame(String cmd, String content)
public static String extractKEYSAsString(org.apache.vinci.transport.document.AFrame frame)
public static String getFeatureValueByType(org.apache.uima.cas_data.CasData aCAS, String featureName)
public static String getContentFromDATACas(org.apache.uima.cas_data.CasData aCas)
public static String stripVinciFrame(org.apache.vinci.transport.VinciFrame aFrame)
Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.