Package org.apache.cxf.ws.policy
Interface AlternativeSelector
- All Known Implementing Classes:
BaseAlternativeSelector,FirstAlternativeSelector,MaximalAlternativeSelector,MinimalAlternativeSelector
public interface AlternativeSelector
Used by the Policy engine to select the Policy alternative to use.
By default, the Policy engine uses a "Minimal" policy alternative selector
that finds the alternative with the smallest Collection of Assertions to
assert.
-
Method Summary
Modifier and TypeMethodDescriptionCollection<org.apache.neethi.Assertion>selectAlternative(org.apache.neethi.Policy policy, PolicyEngine engine, Assertor assertor, List<List<org.apache.neethi.Assertion>> request, org.apache.cxf.message.Message msg)
-
Method Details
-
selectAlternative
Collection<org.apache.neethi.Assertion> selectAlternative(org.apache.neethi.Policy policy, PolicyEngine engine, Assertor assertor, List<List<org.apache.neethi.Assertion>> request, org.apache.cxf.message.Message msg) - Parameters:
policy- The full policy to considerengine- The policy engine calling the selectorassertor- Additional asserter (such as the transport) that may be able to handle some of the assertionsrequest- On the server out bound side, this will contain the alternatives from the request that were successfully met by the request. The selector should use these to help narrow down the alternative to use.- Returns:
-