Package javango.middleware

Examples of javango.middleware.CommonMiddleware.processRequest()


    HttpRequest request = new HttpRequest();
    request.setPath("hello");
    request.setContext("/myapp");
   
    CommonMiddleware middleware = new CommonMiddleware();
    javango.http.HttpResponse response = middleware.processRequest(request);
   
    assertNotNull(response);
    assertTrue(response instanceof HttpResponseRedirect);
    assertEquals("/myapp/hello/", ((HttpResponseRedirect)response).getUrl());
  }
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.