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.Exception
public static boolean isRequest(UimaMessage aMessage) throws java.lang.Exception
java.lang.Exception
public static boolean isProcessRequest(UimaMessage aMessage) throws java.lang.Exception
java.lang.Exception
public static boolean validCommand(UimaMessage aMessage, java.lang.String endpointName) throws java.lang.Exception
aMessage
- - JMS Message receivedproperties
- - Map containing header propertiesjava.lang.Exception
public static boolean validPayload(UimaMessage aMessage, java.lang.String endpointName) throws java.lang.Exception
aMessage
- - JMS Message receivedproperties
- - Map containing header propertiesjava.lang.Exception
public 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.Exception
public static java.lang.String decodeIntToString(java.lang.String aTypeToDecode, int aValueToDecode)
Copyright © 2012. All Rights Reserved.