Package org.gatein.wci.spi.callbacks

Examples of org.gatein.wci.spi.callbacks.ExceptionCallback


         //
         WebApp webApp = registry.getWebApp("/test-spi-app");
         NormalCallback cb1 = new NormalCallback(appContext, webApp.getClassLoader());
         Exception ex = new Exception();
         ExceptionCallback cb2 = new ExceptionCallback(appContext, ex, ex);
         Error err = new Error();
         ExceptionCallback cb3 = new ExceptionCallback(appContext, err, err);
         RuntimeException rex = new RuntimeException();
         ExceptionCallback cb4 = new ExceptionCallback(appContext, rex, rex);
         IOException ioe = new IOException();
         ExceptionCallback cb5 = new ExceptionCallback(appContext, ioe, ioe);

         //
         ServletContextDispatcher dispatcher = new ServletContextDispatcher(req, resp, container);
         DriverResponse response = cb1.test(null, dispatcher);
         response = cb2.test(response, dispatcher);
         response = cb3.test(response, dispatcher);
         response = cb4.test(response, dispatcher);
         response = cb5.test(response, dispatcher);

         //
         if (response != null)
         {
            return response;
View Full Code Here


         //
         WebApp webApp = registry.getWebApp("/test-native-skip-with-gateinservlet-app");
         NormalCallback cb1 = new NormalCallback(appContext, webApp.getClassLoader());
         Exception ex = new Exception();
         ExceptionCallback cb2 = new ExceptionCallback(appContext, ex, ex);
         Error err = new Error();
         ExceptionCallback cb3 = new ExceptionCallback(appContext, err, err);
         RuntimeException rex = new RuntimeException();
         ExceptionCallback cb4 = new ExceptionCallback(appContext, rex, rex);
         IOException ioe = new IOException();
         ExceptionCallback cb5 = new ExceptionCallback(appContext, ioe, ioe);

         //
         ServletContextDispatcher dispatcher = new ServletContextDispatcher(req, resp, container);
         DriverResponse response = cb1.test(null, dispatcher);
         response = cb2.test(response, dispatcher);
         response = cb3.test(response, dispatcher);
         response = cb4.test(response, dispatcher);
         response = cb5.test(response, dispatcher);

         return new UndeployResponse("test-native-skip-with-gateinservlet-app.war");
      }

      else if (getRequestCount() == 3)
View Full Code Here

TOP

Related Classes of org.gatein.wci.spi.callbacks.ExceptionCallback

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.