com::cosylab::acs::jms::ACSJMSMessageSelector::ACSJMSValueProvider Class Reference

Inheritance diagram for com::cosylab::acs::jms::ACSJMSMessageSelector::ACSJMSValueProvider:
Inheritance graph
[legend]
Collaboration diagram for com::cosylab::acs::jms::ACSJMSMessageSelector::ACSJMSValueProvider:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ACSJMSValueProvider (ACSJMSMessage jmsMessage)
Object getValue (Object identifier, Object correlation)

Package Attributes

ACSJMSMessage message

Detailed Description

The parser makes callbacks to the getValue method of this object whenever needs a value. I need to customize the value provider becase we need to check the content of the message. The package provides a ValueProvider for JMS messages that allows to use the dot notation to access the field of the message but I prefer this iplementation.

Author:
acaproni

Constructor & Destructor Documentation

com::cosylab::acs::jms::ACSJMSMessageSelector::ACSJMSValueProvider::ACSJMSValueProvider ( ACSJMSMessage  jmsMessage  )  [inline]

Constructor

Parameters:
jmsMessage The message whose values are neeed by the parser

References message.


Member Function Documentation

Object com::cosylab::acs::jms::ACSJMSMessageSelector::ACSJMSValueProvider::getValue ( Object  identifier,
Object  correlation 
) [inline]

Return the value of a property. It looks for the property in the body of the message, not in the header. JMS specification states that the properties to check should only be those of the header so we are not following the specs here (even if it is common use). It should be better at least to check ALSO in the header properties

NOTE: Properties are object of type org.jacorb.orb.Any containing a String. This method tries to parse the String in order to return an object of the right type (true and false for booleans)

Parameters:
identifier The identifier of the property (the key, it is a String)
correlation The correlation object (not used)
Returns:
The value of the property or null if the property was not found

References com::cosylab::acs::jms::ACSJMSMessage::entity, and message.


Member Data Documentation

The message whose values are neeed by the parser

Referenced by ACSJMSValueProvider(), and getValue().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2