public final class RMPolicyUtilities extends Object
Modifier and Type | Method and Description |
---|---|
static Collection<AssertionInfo> |
collectRMAssertions(AssertionInfoMap aim)
Collect RMAssertions from map.
|
static boolean |
equals(RMAssertion a,
RMAssertion b) |
static boolean |
equals(RMConfiguration a,
RMConfiguration b) |
static RMConfiguration |
getRMConfiguration(RMConfiguration defaultValue,
Message message)
Returns an RMAssertion that is compatible with the default value and all RMAssertions pertaining to the
message (can never be null).
|
static RMConfiguration |
intersect(org.apache.neethi.builders.PrimitiveAssertion rma,
RMConfiguration cfg)
Intersect a policy with a supplied configuration.
|
static RMConfiguration |
intersect(RMAssertion rma,
RMConfiguration cfg)
Intersect a policy with a supplied configuration.
|
static boolean |
isCompatible(org.apache.neethi.builders.PrimitiveAssertion rma,
RMConfiguration cfg)
Check if a policy is compatible with a supplied configuration.
|
static boolean |
isCompatible(RMAssertion asser,
RMConfiguration cfg)
Check if a policy is compatible with a supplied configuration.
|
public static RMConfiguration getRMConfiguration(RMConfiguration defaultValue, Message message)
rma
- the default value (non-null
)message
- the messagepublic static Collection<AssertionInfo> collectRMAssertions(AssertionInfoMap aim)
aim
- map, may be null
null
public static boolean equals(RMAssertion a, RMAssertion b)
public static boolean equals(RMConfiguration a, RMConfiguration b)
public static RMConfiguration intersect(RMAssertion rma, RMConfiguration cfg)
rma
- cfg
- public static boolean isCompatible(RMAssertion asser, RMConfiguration cfg)
asser
- cfg
- true
if compatible, false
if notpublic static RMConfiguration intersect(org.apache.neethi.builders.PrimitiveAssertion rma, RMConfiguration cfg)
rma
- cfg
- public static boolean isCompatible(org.apache.neethi.builders.PrimitiveAssertion rma, RMConfiguration cfg)
rma
- cfg
- true
if compatible, false
if notApache CXF