Package net.sourceforge.urlrewriter4j.core.actions

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


  public IRewriteAction parse(Node pNode, RewriterConfiguration pConfig)
      throws ConfigurationException {
    Node oStatusNode = pNode.getAttributes().getNamedItem(Constants.ATTR_STATUS);
    if (oStatusNode == null) return null;
   
    return new SetStatusAction(Integer.parseInt(oStatusNode.getNodeValue()));
  }
View Full Code Here


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

    oConfiguration.getRules().add(
        new SetStatusAction(HttpServletResponse.SC_PARTIAL_CONTENT));
   
    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.SetStatusAction

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.