Package org.gatein.wci

Examples of org.gatein.wci.WebApp


   {
      Module module = resource.getModule(moduleName);
      if (module instanceof Module.Local)
      {
         Module.Local localModule = (Module.Local)module;
         final WebApp webApp = contexts.get(localModule.getContextPath());
         if (webApp != null)
         {
            ServletContext sc = webApp.getServletContext();
            return localModule.read(locale, sc, webApp.getClassLoader());
         }
      }
      return null;
   }
View Full Code Here


      {
         return new FailureResponse(Failure.createErrorFailure("Could not find the requested webapp [" + appContext + "] in the list of depoyed webapps."));
      }

      //
      WebApp webApp = registry.getWebApp(appContext);
      if (webApp == null)
      {
         return new FailureResponse(Failure.createAssertionFailure("The web app " + appContext + " was not found"));
      }
      if (!appContext.equals(webApp.getContextPath()))
      {
         return new FailureResponse(Failure.createAssertionFailure("The web app context is not equals to the expected value [" + appContext + "] but has the value " + webApp.getContextPath()));
      }

      return null;
   }
View Full Code Here

TOP

Related Classes of org.gatein.wci.WebApp

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.