Package org.apache.cxf.ws.rm.policy
Class RMPolicyUtilities
java.lang.Object
org.apache.cxf.ws.rm.policy.RMPolicyUtilities
Utilities for working with policies and configurations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<org.apache.cxf.ws.policy.AssertionInfo>collectRMAssertions(org.apache.cxf.ws.policy.AssertionInfoMap aim) Collect RMAssertions from map.static booleanstatic booleanequals(RMAssertion a, RMAssertion b) static RMConfigurationgetRMConfiguration(RMConfiguration defaultValue, org.apache.cxf.message.Message message) Returns an RMAssertion that is compatible with the default value and all RMAssertions pertaining to the message (can never be null).static RMConfigurationintersect(RMAssertion rma, RMConfiguration cfg) Intersect a policy with a supplied configuration.static RMConfigurationintersect(org.apache.neethi.builders.PrimitiveAssertion rma, RMConfiguration cfg) Intersect a policy with a supplied configuration.static booleanisCompatible(RMAssertion asser, RMConfiguration cfg) Check if a policy is compatible with a supplied configuration.static booleanisCompatible(org.apache.neethi.builders.PrimitiveAssertion rma, RMConfiguration cfg) Check if a policy is compatible with a supplied configuration.
-
Method Details
-
getRMConfiguration
public static RMConfiguration getRMConfiguration(RMConfiguration defaultValue, org.apache.cxf.message.Message message) Returns an RMAssertion that is compatible with the default value and all RMAssertions pertaining to the message (can never be null).- Parameters:
defaultValue- the default value (non-null)message- the message- Returns:
- the compatible RMAssertion
-
collectRMAssertions
public static Collection<org.apache.cxf.ws.policy.AssertionInfo> collectRMAssertions(org.apache.cxf.ws.policy.AssertionInfoMap aim) Collect RMAssertions from map. This checks both namespaces defined for WS-RM policy assertions, along with the WS-I RSP namespace.- Parameters:
aim- map, may benull- Returns:
- merged collection, never
null
-
equals
-
equals
-
intersect
Intersect a policy with a supplied configuration.- Parameters:
rma-cfg-- Returns:
- result configuration
-
isCompatible
Check if a policy is compatible with a supplied configuration.- Parameters:
asser-cfg-- Returns:
trueif compatible,falseif not
-
intersect
public static RMConfiguration intersect(org.apache.neethi.builders.PrimitiveAssertion rma, RMConfiguration cfg) Intersect a policy with a supplied configuration.- Parameters:
rma-cfg-- Returns:
- result configuration
-
isCompatible
public static boolean isCompatible(org.apache.neethi.builders.PrimitiveAssertion rma, RMConfiguration cfg) Check if a policy is compatible with a supplied configuration.- Parameters:
rma-cfg-- Returns:
trueif compatible,falseif not
-