[
https://issues.apache.org/jira/browse/CXF-3996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrei Shakirin updated CXF-3996:
---------------------------------
Attachment: PolicyInInterceptor.patch
Patch
> Extend POLICY_OVERRIDE property to service IN
> ---------------------------------------------
>
> Key: CXF-3996
> URL: https://issues.apache.org/jira/browse/CXF-3996
> Project: CXF
> Issue Type: Improvement
> Reporter: Andrei Shakirin
> Priority: Minor
> Attachments: PolicyInInterceptor.patch
>
>
> 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.
--
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