public final class PolicyUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PolicyUtils.WrappedAssertor |
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(Collection<org.apache.neethi.Assertion> assertions,
org.apache.neethi.Assertion candidate)
Determine if a collection of assertions contains a given assertion, using
the equal method from the Assertion interface.
|
static boolean |
contains(Collection<org.apache.neethi.Assertion> assertions,
Collection<org.apache.neethi.Assertion> candidates)
Determine if one collection of assertions contains another collection of assertion, using
the equal method from the Assertion interface.
|
static Assertor |
createAsserter(Object o) |
static boolean |
isEmptyPolicy(org.apache.neethi.Policy p)
Checks if a given policy contains no policy components
or if it has only empty ExactlyOne or All components
containing no assertions
|
static boolean |
isEmptyPolicyOperator(org.apache.neethi.PolicyOperator p)
Checks if a given policy operator has no policy components
or if it has only empty ExactlyOne or All components
containing no assertions
|
static void |
logPolicy(Logger log,
Level level,
String msg,
org.apache.neethi.PolicyComponent pc) |
static void |
printPolicyComponent(org.apache.neethi.PolicyComponent pc) |
static void |
printPolicyComponent(org.apache.neethi.PolicyComponent pc,
StringBuilder buf,
int level) |
public static boolean isEmptyPolicy(org.apache.neethi.Policy p)
p
- the policypublic static boolean isEmptyPolicyOperator(org.apache.neethi.PolicyOperator p)
p
- the policy operatorpublic static boolean contains(Collection<org.apache.neethi.Assertion> assertions, org.apache.neethi.Assertion candidate)
assertions
- a collection of assertionscandidate
- the assertion to testpublic static boolean contains(Collection<org.apache.neethi.Assertion> assertions, Collection<org.apache.neethi.Assertion> candidates)
assertions
- a collection of assertionscandidates
- the collections of assertion to testpublic static void logPolicy(Logger log, Level level, String msg, org.apache.neethi.PolicyComponent pc)
public static void printPolicyComponent(org.apache.neethi.PolicyComponent pc)
public static void printPolicyComponent(org.apache.neethi.PolicyComponent pc, StringBuilder buf, int level)
Apache CXF