org.apache.sandesha2.policy
Class RMPolicyProcessor
java.lang.Object
org.apache.sandesha2.policy.RMPolicyProcessor
- public class RMPolicyProcessor
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RMPolicyProcessor
public RMPolicyProcessor()
setup
public boolean setup()
throws java.lang.NoSuchMethodException
- Throws:
java.lang.NoSuchMethodException
processPolicy
public boolean processPolicy(org.apache.ws.policy.Policy policy)
- This method takes a normalized policy object, processes it and returns
true if all assertion can be fulfilled.
Each policy must be nromalized accordig to the WS Policy framework
specification. Therefore a policy has one child (wsp:ExactlyOne) that is
a XorCompositeAssertion. This child may contain one or more other terms
(alternatives). To match the policy one of these terms (alternatives)
must match. If none of the contained terms match this policy cannot be
enforced.
- Parameters:
policy
- The policy to process
- Returns:
- True if this policy can be enforced by the policy enforcement
implmentation
startPolicyTransaction
public boolean startPolicyTransaction(org.apache.ws.policy.PrimitiveAssertion pa)
abortPolicyTransaction
public void abortPolicyTransaction(org.apache.ws.policy.PrimitiveAssertion pa)
commitPolicyTransaction
public void commitPolicyTransaction(org.apache.ws.policy.PrimitiveAssertion pa)
getContext
public RMProcessorContext getContext()
setContext
public void setContext(RMProcessorContext rmProcessorContext)
Copyright © 2005-2006 Apache Web Services. All Rights Reserved.