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(AFrame frame) |
static String |
getContentFromDATACas(CasData aCas) |
static String |
getFeatureValueByType(CasData aCAS,
String featureName) |
static AFrame |
produceAFrame(String cmd,
String content) |
static AFrame |
replyWithAnalysis(BaseClient conn,
VinciFrame requestFrame)
Package the
VinciFrame containing result of the requested
operation into a Vinci Data frame. |
static AFrame |
replyWithAnalysis(VinciClient conn,
VinciFrame requestFrame)
Package the
VinciFrame containing result of the requested
operation into a Vinci Data frame. |
VinciFrame |
replyWithError(String errorMsg)
Creates and populates an error frame.
|
static String |
stripVinciFrame(VinciFrame aFrame)
Returns a content from a given VinciFrame.
|
public static final String VNS_HOST
public static final String VNS_PORT
public VinciFrame replyWithError(String errorMsg)
errorMsg
- -
error message to place in the error frameVinciFrame
instance containing errorpublic static AFrame replyWithAnalysis(BaseClient conn, 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 AFrame replyWithAnalysis(VinciClient conn, 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 String stripVinciFrame(VinciFrame aFrame)
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.