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

Extend POLICY_OVERRIDE property to service IN

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.4.6, 2.5.2
    • None
    • None
    • Unknown

    Description

      Hi,

      PolicyConstants.POLICY_OVERRIDE constant in PolicyInInterceptor provides the possibility to dynamically override
      the policy. I would like to reuse this mechanism in custom project to dynamically apply policies calculating in ServiceRegistry.

      Solution works fine for client IN/OUT and for service OUT, but
      unfortunately doesn't work for service IN. The reason is that code in
      PolicyInInterceptor checks PolicyConstants.POLICY_OVERRIDE only after
      "if (MessageUtils.isRequestor(msg))" statement. Therefore provider IN
      messages are ignored.

      Corresponded patch is attached.

      Regards,
      Andrei.

      Attachments

        1. PolicyInInterceptor.patch
          4 kB
          Andrei Shakirin

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: