Examples of PolicyBehavior


Examples of org.wso2.carbon.policybuilder.ui.internal.engine.PolicyBehavior

    // XMLReader myReader = new XMLFileReader("/home/usw/soap.txt");
    XMLReader myReader = new XMLStringReader(input);
    OMElement curr_element = myReader.getDocumentRoot();
    Iterator mainIterator = mainList.iterator();
    while (mainIterator.hasNext()) {
      PolicyBehavior tempMain = (PolicyBehavior) mainIterator.next();
      if (log.isDebugEnabled()) {
        log.debug("Evaluating Main behavior");
      }
      //System.out.println("\nEvaluating Main behavior");
      tempMain.handleSuccessor(curr_element);
    }
    String out = printConfigs();
    if (log.isDebugEnabled()) {
      log.debug(out);
    }
View Full Code Here

Examples of org.wso2.carbon.policybuilder.ui.internal.engine.PolicyBehavior

  private void doBehaviorLoad() throws BehaviorLoadFault, AssertionLoadFault {
    AbstractSecurityAssertion assertion;
    assertion = getAssertion(getCurrentAssertionName(), getCurrentAssertionParam());
    if (assertion != null) {
      PolicyBehavior temp = getBehavior(getCurrentBehaviorName(), assertion);
      if (log.isDebugEnabled()) {
        log.debug("Assertion found :" + getCurrentAssertionName() + " ; class:" + assertion.getClass().getName());
      }
      //  System.out.println("Assertion found :"+getCurrentAssertionName()+" ; class:"+assertion.getClass().getName());
      if (temp != null) {
        currentAssertion = assertion;
        currentBehavior = temp;
        behaviorAssertionMap.put(getCurrentID(), assertion);
        setCurrentBehaviorParams();
        if (log.isDebugEnabled()) {
          log.debug("Behavior found :" + getCurrentBehaviorName() + " ; class:" + temp.getClass().getName());
        }
        // System.out.println("Behavior found :"+getCurrentBehaviorName()+" ; class:"+temp.getClass().getName());
      } else {
        throw new BehaviorLoadFault();
      }
View Full Code Here

Examples of org.wso2.carbon.policybuilder.ui.internal.engine.PolicyBehavior

    }
  }

  private PolicyBehavior getBehavior(String elemNameAttrib, AbstractSecurityAssertion assertion) {
    BehaviorLoader behaviorLoader = new BehaviorLoader();
    PolicyBehavior pb = null;
    try {
      pb = (PolicyBehavior) behaviorLoader.loadClass(Initiator.PACKAGE + elemNameAttrib).getConstructor(AbstractSecurityAssertion.class).newInstance(assertion);
      if (log.isDebugEnabled()) {
        log.debug("Policy Behavior Loaded Successfully..");
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.