public class UimaMessageValidator
extends java.lang.Object
| Constructor and Description |
|---|
UimaMessageValidator() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
decodeIntToString(java.lang.String aTypeToDecode,
int aValueToDecode) |
static boolean |
isProcessRequest(UimaMessage aMessage) |
static boolean |
isRequest(UimaMessage aMessage) |
static boolean |
isStaleMessage(UimaMessage aMessage,
boolean isStopped,
java.lang.String endpointName,
boolean entryExists) |
static boolean |
isValidMessage(UimaMessage aMessage,
AnalysisEngineController controller)
Validates contents of the message.
|
static boolean |
validCommand(UimaMessage aMessage,
java.lang.String endpointName)
Validate command contained in the header of the JMS Message
|
static boolean |
validMessageType(UimaMessage aMessage,
java.lang.String endpointName)
Validate message type contained in the JMS header.
|
static boolean |
validPayload(UimaMessage aMessage,
java.lang.String endpointName)
Validates payload in the JMS Message.
|
public static boolean validMessageType(UimaMessage aMessage, java.lang.String endpointName) throws java.lang.Exception
aMessage - - jms message retrieved from queueproperties - - map containing message propertiesjava.lang.Exceptionpublic static boolean isRequest(UimaMessage aMessage) throws java.lang.Exception
java.lang.Exceptionpublic static boolean isProcessRequest(UimaMessage aMessage) throws java.lang.Exception
java.lang.Exceptionpublic static boolean validCommand(UimaMessage aMessage, java.lang.String endpointName) throws java.lang.Exception
aMessage - - JMS Message receivedproperties - - Map containing header propertiesjava.lang.Exceptionpublic static boolean validPayload(UimaMessage aMessage, java.lang.String endpointName) throws java.lang.Exception
aMessage - - JMS Message receivedproperties - - Map containing header propertiesjava.lang.Exceptionpublic static boolean isStaleMessage(UimaMessage aMessage, boolean isStopped, java.lang.String endpointName, boolean entryExists)
public static boolean isValidMessage(UimaMessage aMessage, AnalysisEngineController controller) throws java.lang.Exception
aMessage - - JMS Message to validatejava.lang.Exceptionpublic static java.lang.String decodeIntToString(java.lang.String aTypeToDecode,
int aValueToDecode)
Copyright © 2012. All Rights Reserved.