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