Package net.sourceforge.urlrewriter4j.core.actions

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


   * @see net.urlrewriter.parsers.RewriteActionParserBase#parse(org.w3c.dom.Node, net.urlrewriter.configuration.RewriterConfiguration)
   */
  @Override
  public IRewriteAction parse(Node pNode, RewriterConfiguration pConfig)
      throws ConfigurationException {
    return new NotImplementedAction();
  }
View Full Code Here


  }

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

    oConfiguration.getRules().add(new NotImplementedAction());

    MockContextFacade oMockFacade = new MockContextFacade("/", ".",
        "GET", new URL("http://localhost/test.aspx"));
    RewriterEngine oEngine = new RewriterEngine(oConfiguration);
    try {
View Full Code Here

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

    ConditionalAction oAction = new ConditionalAction();
    oAction.getConditions().add(new AddressCondition("127.0.0.1"));
    oAction.getActions().add(new NotImplementedAction());

    oConfiguration.getRules().add(oAction);

    MockContextFacade oMockFacade = new MockContextFacade("/", ".",
        "GET", new URL("http://localhost/test.aspx"));
View Full Code Here

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

    ConditionalAction oAction = new ConditionalAction();
    oAction.getConditions().add(new AddressCondition("127.0.0.1"));
    oAction.getActions().add(new NotImplementedAction());

    oConfiguration.getRules().add(oAction);

    MockContextFacade oMockFacade = new MockContextFacade("/", ".",
        "GET", new URL("http://localhost/test.aspx"));
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",
        "GET", new URL("http://localhost/test.aspx"));
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",
        "GET", new URL("http://localhost/test.aspx"));
View Full Code Here

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

    ConditionalAction oAction = new ConditionalAction();
    oAction.getConditions().add(new UrlMatchCondition("/test.aspx"));
    oAction.getActions().add(new NotImplementedAction());

    oConfiguration.getRules().add(oAction);

    MockContextFacade oMockFacade = new MockContextFacade("/", ".",
        "GET", new URL("http://localhost/test.aspx"));
View Full Code Here

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

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

    oConfiguration.getRules().add(oAction);

    MockContextFacade oMockFacade = new MockContextFacade("/", ".",
        "GET", new URL("http://localhost/test.aspx"));
View Full Code Here

TOP

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

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.