Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
Currently AbstractPolicyProvider.getEffectivePolicy() accepts only Service Model related params: BindingMessageInfo, BindingOperationInfo, etc.
I have some use cases where this information is not enough to decide which policy should be selected. For example if user makes a difference between client and service policies, no chance to decide which one have to be used.
The client and service policies make sense if service supports some options as policy alternatives (for example UT and SAML) and different clients use exactly one.
Proposal: extend AbstractPolicyProvider.getEffectivePolicy() with optional message parameter. If parameter is available (for example from EffectivePolicyImpl), it can be used to make precise decision regarding policies.