Package com.foreach.across.modules.web.context

Examples of com.foreach.across.modules.web.context.PrefixingPathContext.redirect()


    assertEquals( "redirect:~/test/path", ctx.redirect( "redirect:~/test/path" ) );

    // Instead of modifying the forward, assume it's what the user want
    assertEquals( "redirect:forward:/boe/test/path", ctx.redirect( "forward:test/path" ) );
    assertEquals( "redirect:forward:/boe/test/path", ctx.redirect( "forward:/test/path" ) );
    assertEquals( "redirect:forward:http://www.google.be", ctx.redirect( "forward:http://www.google.be" ) );
    assertEquals( "redirect:forward:~/test/path", ctx.redirect( "forward:~/test/path" ) );
  }
}
View Full Code Here


    // Instead of modifying the forward, assume it's what the user want
    assertEquals( "redirect:forward:/boe/test/path", ctx.redirect( "forward:test/path" ) );
    assertEquals( "redirect:forward:/boe/test/path", ctx.redirect( "forward:/test/path" ) );
    assertEquals( "redirect:forward:http://www.google.be", ctx.redirect( "forward:http://www.google.be" ) );
    assertEquals( "redirect:forward:~/test/path", ctx.redirect( "forward:~/test/path" ) );
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.