camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dunnlow <>
Subject Accessing a Map header via Simple?
Date Tue, 31 Jan 2012 17:12:41 GMT
Hi.  I have a Map<String,Object> in my header and I am trying to access it
via Simple in my spring dsl.

I see an example using body in the documentation and am extrapolating that
for my header purposes.  However, I'm getting a NullPointerException, so I
am thinking I've got bad syntax.

My map holds key/value pairs like ->
and has been added to the headers and is named uriMap.

I want to do a lookup on "user1" for example.

I'm trying: 


 -  Is it ok without quotes around user1?
 -  If there is no user1 in the map, can I use the .? to avoid a NPE like:


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message