[rabbitmq-discuss] How to check if custom headers attribute exist

cw storm cwstorm at gmail.com
Thu Jan 30 16:30:06 GMT 2014


Please forgive me but I have a simple question.  How can I check to see if
there's custom header attribute exist or not before I perform the below:

String strFirstName = props.getHeaders().get("FirstName").toString()

I believe if there's no custom headers, then it'll exception.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140130/e113423b/attachment.html>


More information about the rabbitmq-discuss mailing list