Examples of WebApplication


Examples of org.apache.wicket.protocol.http.WebApplication

  @Before
  public void before() throws Exception
  {
    tester = new WicketTester();

    WebApplication application = tester.getApplication();
    application.mountPage(EXPECTED_URL.toString(), DummyHomePage.class);

    /**
     * Use explicit crypt provider to prevent crypt warning output, see
     * SecuritySettings#getCryptFactory()
     */
    IProvider<ICrypt> cryptProvider = new IProvider<ICrypt>()
    {
      private ICryptFactory cryptFactory = new CachingSunJceCryptFactory(
        SecuritySettings.DEFAULT_ENCRYPTION_KEY);

      @Override
      public ICrypt get()
      {
        return cryptFactory.newCrypt();
      }
    };

    mapper = new CryptoMapper(application.getRootRequestMapper(), cryptProvider);
  }
View Full Code Here

Examples of org.apache.wicket.protocol.http.WebApplication

   * @param homePage
   *            a home page <code>Class</code>
   */
  public <C extends Page> BaseWicketTester(final Class<C> homePage)
  {
    this(new WebApplication()
    {
      /**
       * @see org.apache.wicket.Application#getHomePage()
       */
      @Override
 
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.extended.WebApplication

          schemaParser.parseSchema(readSchemas, ref, false);
        }
      }
    }
    else if (def instanceof WebApplication){
      WebApplication app = (WebApplication) def;
      if (app.getDefinedInModule() == codeGenModule){
        application = app;
       
        // We create an internal run context item for the generated PlaceHistoryMapper
        RunContextItem rci = new RunContextItem();
        rci.setAutoCreated(true);
        RunContextItemCollection rcic = contexts.get(rci.getContextImpl());
       
        rci.setItemName("historyMapper");
        rci.setDescription("This is the auto generated run context item that provides a handle to the application specific PlaceHistoryMapper for a web application.");
        rci.setItemOrder(7);
        rci.setUseClass(codeGenModule.getGenPackage() + ".generated.mvw.places." + app.getAppName() + "PlaceHistoryMapper");
        rci.setConstruction("GWT.create(" + app.getAppName() + "PlaceHistoryMapper.class)");
        rci.addImportThis("com.google.gwt.core.client.GWT");
        rci.setDefinedInModule(app.getDefinedInModule());
       
        if (rcic == null){
          rcic = new RunContextItemCollection(rci.getContextImpl());
          contexts.put(rci.getContextImpl(), rcic);
        }
View Full Code Here

Examples of org.eclipse.orion.server.jetty.WebApplication

        ensureBundleStarted(EQUINOX_HTTP_JETTY);
        ensureBundleStarted(EQUINOX_HTTP_REGISTRY);
        //get the webide bundle started via lazy activation.
        org.eclipse.orion.server.authentication.Activator.getDefault();
        Activator.getDefault();
        webapp = new WebApplication();
        webapp.start(null);
        initialize();
      } catch (Exception e) {
        e.printStackTrace();
        return null;
View Full Code Here

Examples of org.emrys.webosgi.core.runtime.WebApplication

    IWebApplication app = findApplication(wabundle);
    if (app != null && app.isDynaServicesStarted())
      return;

    if (app == null) {
      WebApplication tmpApp = new WebApplication(wabundle);
      FwkRuntime.getInstance().regApplication(tmpApp);
      app = tmpApp;
    }

    app.startDynamicServices();
View Full Code Here

Examples of org.gradle.api.internal.java.WebApplication

        configurationContainer.getByName(JavaPlugin.COMPILE_CONFIGURATION_NAME).extendsFrom(provideCompileConfiguration);
        configurationContainer.getByName(JavaPlugin.RUNTIME_CONFIGURATION_NAME).extendsFrom(provideRuntimeConfiguration);
    }

    private void configureComponent(Project project, PublishArtifact warArtifact) {
        project.getComponents().add(new WebApplication(warArtifact));
    }
View Full Code Here

Examples of org.jboss.seam.servlet.WebApplication

*/
public class ServletEventBridgeListener extends AbstractServletEventBridge implements HttpSessionActivationListener,
        HttpSessionListener, ServletContextListener, ServletRequestListener {
    public void contextInitialized(final ServletContextEvent e) {
        fireEvent(new InternalServletContextEvent(e.getServletContext()), InitializedLiteral.INSTANCE);
        WebApplication webapp = new WebApplication(e.getServletContext());
        e.getServletContext().setAttribute(WEB_APPLICATION_ATTRIBUTE_NAME, webapp);
        fireEvent(webapp, InitializedLiteral.INSTANCE);
        fireEvent(e.getServletContext(), InitializedLiteral.INSTANCE);
    }
View Full Code Here

Examples of org.jboss.web.WebApplication

   {
      if (this.unit == null || this.container == null || this.deployment == null)
         throw new IllegalStateException("WebModules cannot be restarted, and must be redeployed");
      // Get the war URL
      JBossWebMetaData metaData = unit.getAttachment(JBossWebMetaData.class);
      WebApplication webApp = deployment.start(unit, metaData);
      String warURL = unit.getName();
      container.addDeployedApp(warURL, webApp);
   }
View Full Code Here

Examples of org.jboss.web.WebApplication

   public synchronized void stopModule() throws DeploymentException
   {
      String warURL = unit.getName();
      try
      {
         WebApplication webApp = container.removeDeployedApp(warURL);
         if (deployment != null && webApp != null)
         {
            deployment.stop(unit, webApp);
         }
         else
View Full Code Here

Examples of org.jboss.web.WebApplication

    */
   public synchronized WebApplication start(DeploymentUnit unit, JBossWebMetaData metaData) throws Exception
   {
      Thread thread = Thread.currentThread();
      ClassLoader appClassLoader = thread.getContextClassLoader();
      WebApplication webApp = null;
      try
      {
         // Create a classloader for the war to ensure a unique ENC
         ClassLoader warLoader = unit.getClassLoader();
         thread.setContextClassLoader(warLoader);
         String webContext = metaData.getContextRoot();

         // Get the war URL
         URL warUrl = unit.getAttachment("org.jboss.web.expandedWarURL", URL.class);
         if (warUrl == null && unit instanceof VFSDeploymentUnit)
         {
            VFSDeploymentUnit vdu = VFSDeploymentUnit.class.cast(unit);
            warUrl = VFSUtils.getPhysicalURL(vdu.getRoot());
         }

         // Dynamic WebMetaData deployments might not provide an URL
         // We use the DEploymentUnit name as identifier instead.
         // The JAXWS Endpoint API for example does this.
         String warURLString = (warUrl != null ? warUrl.toExternalForm() : unit.getName());

         // Strip any jar: url syntax. This should be be handled by the vfs
         if (warURLString.startsWith("jar:"))
            warURLString = warURLString.substring(4, warURLString.length() - 2);

         log.debug("webContext: " + webContext);
         log.debug("warURL: " + warURLString);

         // Register the permissions with the JACC layer
         String contextID = metaData.getJaccContextID();
         if (contextID == null)
            contextID = unit.getSimpleName();
         metaData.setJaccContextID(contextID);

         webApp = new WebApplication(metaData);
         webApp.setClassLoader(warLoader);
         webApp.setDeploymentUnit(unit);
         performDeploy(webApp, warURLString);
      }
      finally
      {
         thread.setContextClassLoader(appClassLoader);
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.