Package net.sourceforge.urlrewriter4j.core.conditions

Examples of net.sourceforge.urlrewriter4j.core.conditions.ExistsCondition


   * @see net.urlrewriter.parsers.IRewriteConditionParser#parse(org.w3c.dom.Node)
   */
  public IRewriteCondition parse(Node pNode) throws ConfigurationException {
    Node oExistsNode = pNode.getAttributes().getNamedItem(Constants.ATTR_EXISTS);
    if (oExistsNode != null) {
      return new ExistsCondition(oExistsNode.getNodeValue());
    }
    return null;
  }
View Full Code Here


  public void testExistsConditionPositive() throws Exception {
    RewriterConfiguration oConfiguration = getConfig();

    ConditionalAction oAction = new ConditionalAction();
    oAction.getConditions().add(new ExistsCondition("/foo.aspx"));
    oAction.getActions().add(new NotImplementedAction());

    oConfiguration.getRules().add(oAction);

    MockContextFacade oMockFacade = new MockContextFacade("/", "src/test/resources",
View Full Code Here

  public void testExistsConditionNegative() throws Exception {
    RewriterConfiguration oConfiguration = getConfig();

    ConditionalAction oAction = new ConditionalAction();
    oAction.getConditions().add(new ExistsCondition("/foo1.aspx"));
    oAction.getActions().add(new NotImplementedAction());

    oConfiguration.getRules().add(oAction);

    MockContextFacade oMockFacade = new MockContextFacade("/", "src/test/resources",
View Full Code Here

TOP

Related Classes of net.sourceforge.urlrewriter4j.core.conditions.ExistsCondition

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.