Package net.sourceforge.urlrewriter4j.core.actions

Examples of net.sourceforge.urlrewriter4j.core.actions.IRewriteAction


      if (oRule instanceof IRewriteCondition) {
        IRewriteCondition oCondition = (IRewriteCondition) oRule;
        if (!oCondition.isMatch(pContext)) continue;
      }
      // Execute the action.
      IRewriteAction oAction = (IRewriteAction) oRewriteRules.get(i);
      oProcessing = oAction.execute(pContext);
   
      // If the action is Stop, then break out of the processing loop
      if (oProcessing == RewriteProcessing.StopProcessing) {
        //_configuration.Logger.Debug(MessageProvider.FormatString(Message.StoppingBecauseOfRule));
        if (mLogger.isDebugEnabled()) mLogger.debug("Stopping because of rule.");
View Full Code Here


        List<IRewriteActionParser> oParsers = pConfig.getActionParserFactory().getParsers(oChildNode.getNodeName());
        if (oParsers != null) {
          boolean oParsed = false;
          for (IRewriteActionParser oParser : oParsers) {
            if (mLogger.isDebugEnabled()) mLogger.debug("Parsing node " + oChildNode.toString() + " with parser " + oParser.getClass().getName());
            IRewriteAction oAction = oParser.parse(oChildNode, pConfig);
            if (oAction != null) {
              oParsed = true;
              pActions.add(oAction);
            }
          }
View Full Code Here

        }
        if (!oParser.getAllowAttributes() && pNode.getAttributes().getLength() > 0) {
          throw new ConfigurationException(String.format(Messages.ELEMENT_NOATTRIBUTES, oParser.getName()));
        }
        if (mLogger.isDebugEnabled()) mLogger.debug(oParser.getClass().getName() + " parsing node...");
        IRewriteAction oRule = oParser.parse(pNode, pConfig);
        if (oRule != null) {
          pConfig.getRules().add(oRule);
          oParsed = true;
          break;
        }
View Full Code Here

TOP

Related Classes of net.sourceforge.urlrewriter4j.core.actions.IRewriteAction

Copyright © 2018 www.massapicom. 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.