cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: CXF AssertionInfo
Date Mon, 11 Mar 2013 14:25:32 GMT

On Mar 11, 2013, at 8:32 AM, Colm O hEigeartaigh <coheigea@apache.org> wrote:

> Is there a way to find a CXF AssertionInfo object associated with a Neethi
> Assertion? Normally you do the something like:
> 
> Collection<AssertionInfo> ais = AssertionInfoMap.get(QName);
> for (AssertionInfo ai : ais) {
>    ai.getAssertion();
>    ....
> }
> 
> I am interested in the opposite use-case - I have a Assertion that I have
> retrieved via a parent assertion, and I want to mark the corresponding CXF
> AssertionInfo as asserted. Any ideas?

You'd likely need a utility method that does:

Collection<AssertionInfo> ais = AssertionInfoMap.get(QName);
for (AssertionInfo ai : ais) {
   if (ai.getAssertion() == assertion) {
       ai.setAsserted(true);
   }
}



-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com


Mime
View raw message