cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Shakirin (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-4223) Extend fault policy interceptors with POLICY_OVERRIDE
Date Tue, 03 Apr 2012 08:54:48 GMT
Extend fault policy interceptors with POLICY_OVERRIDE
-----------------------------------------------------

                 Key: CXF-4223
                 URL: https://issues.apache.org/jira/browse/CXF-4223
             Project: CXF
          Issue Type: Improvement
          Components: Core
            Reporter: Andrei Shakirin
         Attachments: DynamicPolicyForFaults.patch

Hi,
I would like to extend CXF-3996 for ClientPolicyInFaultInterceptor  and ServerPolicyOutFaultInterceptor.
Both interceptors will check POLICY_OVERRIDE message context property firstly and, if policy
is provided, it will be used (the same way as in PolicyInInterceptor, PolicyOutInterceptor).

The reason of this extension is use cases where fault interceptor chain should be also controlled
dynamically using POLICY_OVERRIDE mechanism (for example in case of WS-Addressing: if it was
dynamically activated in PolicyInInterceptor, PolicyOutInterceptor it must be also consequentially
done in ClientPolicyInFaultInterceptor  and ServerPolicyOutFaultInterceptor, otherwise faults
will be processed incorrectly). It also harmonise all policy interceptors code. 

Patch includes:
1 extended EffectivePolicyImpl to support getting fault interceptors from PolicyInterceptorProviderRegistry

2)updated ClientPolicyInFaultInterceptor  and ServerPolicyOutFaultInterceptor
3)harmonized PolicyInInterceptor, PolicyOutInterceptor
4)corresponded junit tests

Regards,
Andrei.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message