|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.aae.message.UimaMessageValidator
public class UimaMessageValidator
Constructor Summary | |
---|---|
UimaMessageValidator()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UimaMessageValidator()
Method Detail |
---|
public static boolean validMessageType(UimaMessage aMessage, java.lang.String endpointName) throws java.lang.Exception
aMessage
- - jms message retrieved from queueproperties
- - map containing message properties
java.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 properties
java.lang.Exception
public static boolean validPayload(UimaMessage aMessage, java.lang.String endpointName) throws java.lang.Exception
aMessage
- - JMS Message receivedproperties
- - Map containing header properties
java.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 validate
java.lang.Exception
public static java.lang.String decodeIntToString(java.lang.String aTypeToDecode, int aValueToDecode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |