Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4223

Extend fault policy interceptors with POLICY_OVERRIDE

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.3
    • Component/s: Core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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.

        Attachments

        1. DynamicPolicyForFaults.patch
          37 kB
          Andrei Shakirin

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              ashakirin Andrei Shakirin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: