public class Vinci extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Vinci.AFFactory
A factory for creating AF objects.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
VNS_HOST
The Constant VNS_HOST.
|
static String |
VNS_PORT
The Constant VNS_PORT.
|
| Constructor and Description |
|---|
Vinci() |
| Modifier and Type | Method and Description |
|---|---|
static String |
extractKEYSAsString(org.apache.vinci.transport.document.AFrame frame)
Extract KEYS as string.
|
static String |
getContentFromDATACas(org.apache.uima.cas_data.CasData aCas)
Gets the content from DATA cas.
|
static String |
getFeatureValueByType(org.apache.uima.cas_data.CasData aCAS,
String featureName)
Gets the feature value by type.
|
static org.apache.vinci.transport.document.AFrame |
produceAFrame(String cmd,
String content)
Produce A frame.
|
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.Exception - the exceptionpublic static org.apache.vinci.transport.document.AFrame produceAFrame(String cmd, String content)
cmd - the cmdcontent - the contentpublic static String extractKEYSAsString(org.apache.vinci.transport.document.AFrame frame)
frame - the framepublic static String getFeatureValueByType(org.apache.uima.cas_data.CasData aCAS, String featureName)
aCAS - the a CASfeatureName - the feature namepublic static String getContentFromDATACas(org.apache.uima.cas_data.CasData aCas)
aCas - the a caspublic static String stripVinciFrame(org.apache.vinci.transport.VinciFrame aFrame)
aFrame - the a frameCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.