public class Vinci
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Vinci.AFFactory |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VNS_HOST |
static java.lang.String |
VNS_PORT |
Constructor and Description |
---|
Vinci() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
extractKEYSAsString(AFrame frame) |
static java.lang.String |
getContentFromDATACas(CasData aCas) |
static java.lang.String |
getFeatureValueByType(CasData aCAS,
java.lang.String featureName) |
static AFrame |
produceAFrame(java.lang.String cmd,
java.lang.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(java.lang.String errorMsg)
Creates and populates an error frame.
|
static java.lang.String |
stripVinciFrame(VinciFrame aFrame)
Returns a content from a given VinciFrame.
|
public static final java.lang.String VNS_HOST
public static final java.lang.String VNS_PORT
public VinciFrame replyWithError(java.lang.String errorMsg)
errorMsg
- -
error message to place in the error frameVinciFrame
instance containing errorpublic static AFrame replyWithAnalysis(BaseClient conn, VinciFrame requestFrame) throws java.lang.Exception
VinciFrame
containing result of the requested
operation into a Vinci Data frame.{@link
- org.apache.vinci.transport.VinciFrame}
containing result of thsi service operationVinciFrame
VinciData frame.java.lang.Exception
public static AFrame replyWithAnalysis(VinciClient conn, VinciFrame requestFrame) throws java.lang.Exception
VinciFrame
containing result of the requested
operation into a Vinci Data frame.{@link
- org.apache.vinci.transport.VinciFrame}
containing result of thsi service operationVinciFrame
VinciData frame.java.lang.Exception
public static AFrame produceAFrame(java.lang.String cmd, java.lang.String content)
public static java.lang.String extractKEYSAsString(AFrame frame)
public static java.lang.String getFeatureValueByType(CasData aCAS, java.lang.String featureName)
public static java.lang.String getContentFromDATACas(CasData aCas)
public static java.lang.String stripVinciFrame(VinciFrame aFrame)
Copyright © 2013. All Rights Reserved.