Hi David:
I'd like to simply check the roles on headers which pass the check:
if(isSPEC2005_02 || isSPEC2007_02)
Given how widely used the role/actor attributes are, I believe this is
the right way round.
I'm not sure about that. IMHO, we should get into the pattern of
iterating ONLY over the headers targeted at us, and checking those for
namespace. Now, note that I'm not suggesting walking the list twice or
anything. The getHeadersToProcess() Iterator will hand each correctly
targeted header to the caller, at which point only those headers get
checked for matching a particular namespace/etc. So it seems pretty
much the same either way - you need to walk the entire header list doing
string compares regardless.
For the Sandesha case, it should work just the same way - instead of
Iterator headers = header.getChildElements();
they should be doing
Iterator headers = header.getHeadersToProcess(rolePlayer);
and then proceeding as usual.
--Glen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]