Package net.sourceforge.urlrewriter4j.core.actions

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


      //throw new ConfigurationException(String.format(Messages.ATTRIBUTE_REQUIRED, Constants.ATTR_COOKIE));
      // other parser might do something like SetPropertyActionParser
      return null;
    }
    Node oCookieValueNode = ParserHelper.getAttribute(pNode, Constants.ATTR_VALUE, true);
    return new SetCookieAction(oCookieNameNode.getNodeValue(), oCookieValueNode.getNodeValue());
  }
View Full Code Here


  }

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

    oConfiguration.getRules().add(new SetCookieAction("MyCookie", "MyValue"));

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

TOP

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

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.