Examples of Webapp


Examples of org.jboss.portal.web.WebApp

            return false;
         }
         listeners.add(listener);
         for (Object response : webAppMap.values())
         {
            WebApp webApp = (WebApp)response;
            WebAppLifeCycleEvent event = new WebAppLifeCycleEvent(webApp, WebAppLifeCycleEvent.ADDED);
            safeFireEvent(listener, event);
         }
         return true;
      }
View Full Code Here

Examples of org.knopflerfish.util.servlet.WebApp

      SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER10);

      soapServlet = new SoapServlet();
      log.info("SOAP server started.");
      webApp = new WebApp(getWebAppDescriptor());
      webApp.start(bc);
      log.info("Web application started.");
      bc.addServiceListener(this);

      // Make sure we get services already registered
View Full Code Here

Examples of org.knopflerfish.util.servlet.WebApp

      EngineConfiguration fromBundleResource = new FileProvider(is);
     
      log.info("Configuration file read.");
      axisServer = new AxisServer(fromBundleResource);
      log.info("Axis server started.");
      webApp = new WebApp(getWebAppDescriptor());
      webApp.start(axisBundle);
      log.info("Web application started.");
      axisBundle.addServiceListener(this);  
   
      // Make sure we get services already registered
View Full Code Here

Examples of org.kohsuke.stapler.WebApp

         * Unconventional {@link ModelObject} implementations that do not use {@code sidepanel.groovy}
         * can override {@link ModelObjectWithContextMenu#doContextMenu(StaplerRequest, StaplerResponse)}
         * directly to provide alternative semantics.
         */
        public ContextMenu from(ModelObjectWithContextMenu self, StaplerRequest request, StaplerResponse response) throws JellyException, IOException {
            WebApp webApp = WebApp.getCurrent();
            final Script s = webApp.getMetaClass(self).getTearOff(JellyClassTearOff.class).findScript("sidepanel");
            if (s!=null) {
                JellyFacet facet = webApp.getFacet(JellyFacet.class);
                request.setAttribute("taskTags",this); // <l:task> will look for this variable and populate us
                request.setAttribute("mode","side-panel");
                // run sidepanel but ignore generated HTML
                facet.scriptInvoker.invokeScript(request,response,new Script() {
                    public Script compile() throws JellyException {
View Full Code Here

Examples of org.mortbay.jetty.ant.types.WebApp

        try
        {
          Iterator iterator = webapps.iterator();
          while (iterator.hasNext())
          {
              WebApp webAppConfiguration = (WebApp) iterator.next();
              WebApplicationProxyImpl webApp = new WebApplicationProxyImpl(webAppConfiguration
                      .getName());
              webApp.setSourceDirectory(webAppConfiguration.getWarFile());
              webApp.setContextPath(webAppConfiguration.getContextPath());
              webApp.setWebXml(webAppConfiguration.getWebXmlFile());
              webApp.setJettyEnvXml(webAppConfiguration.getJettyEnvXml());
              webApp.setClassPathFiles(webAppConfiguration.getClassPathFiles());
              webApp.setLibrariesConfiguration(webAppConfiguration.getLibrariesConfiguration());
              webApp.setExtraScanTargetsConfiguration(webAppConfiguration
                      .getScanTargetsConfiguration());
              webApp.setContextHandlers(webAppConfiguration.getContextHandlers());
              webApp.setWebDefaultXmlFile(webAppConfiguration.getWebDefaultXmlFile());

              server.addWebApplication(webApp, webAppConfiguration.getScanIntervalSeconds());
          }
        }
        catch (Exception e) {
          throw new BuildException(e);
        }
View Full Code Here

Examples of org.netbeans.modules.j2ee.dd.api.web.WebApp

        }

        public void run() throws IOException {
            // MODIFY WEB.XML
            FileObject dd = webModule.getDeploymentDescriptor();
            WebApp webApp = DDProvider.getDefault().getDDRoot(dd);
            Project project = FileOwnerQuery.getOwner(dd);


            addServlet(webApp, DISPATCHER_SERVLET_NAME,
                    DISPATCHER_SERVLET_CLASS, frameworkPanel.getDispatcherUrl(), "1");
           
            Map<String, String> initParams = new HashMap<String, String>(4);
            initParams.put("ActionResolver.Packages", "TODO -- enter comma " +
                    "separated packages with Action Beans here");
            initParams.put("LocalePicker.Locales", getLocalePickerContent(
                    frameworkPanel.getDefaultLocalization(),
                    frameworkPanel.getIncludedLocalizations()));
//            initParams.put("Interceptor.Classes", "net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor");
//            initParams.put("MultipartWrapper.Class", "net.sourceforge.stripes.controller.multipart.CommonsMultipartWrapper");
            addFilter(webApp, "StripesFilter", FILTER_CLASS, frameworkPanel.getFilterUrl(),
                    initParams, FilterMappingDispatcher.REQUEST);

            addFilterMapping(webApp, FILTER_NAME, DISPATCHER_SERVLET_NAME,
                    FilterMappingType.SERVLET_NAME, FilterMappingDispatcher.REQUEST);


           WelcomeFileList welcomeFiles = webApp.getSingleWelcomeFileList();
            if (welcomeFiles == null) {
                try {
                    welcomeFiles = (WelcomeFileList) webApp.createBean("WelcomeFileList");
                    webApp.setWelcomeFileList(welcomeFiles);
                } catch (ClassNotFoundException ex) {
                    Exceptions.printStackTrace(ex);
                }
            }
            if (welcomeFiles.sizeWelcomeFile() == 0) {
                welcomeFiles.addWelcomeFile("index.jsp");
            }

            webApp.write(dd);
            log.info("web.xml modified");

            addFileToOpen(dd);

            // ADD libraries
View Full Code Here

Examples of org.zkoss.zk.ui.WebApp

  private Map _fieldsMap; //(class name, String[] of fields)
  private Map _threadLocalsMap; //(class name, ThreadLocal_Contents[] for fields)
  private final boolean _enabled; //whether event thread enabled

  public ThreadLocalListener() {
    final WebApp app = Executions.getCurrent().getDesktop().getWebApp();
    _fieldsMap = (Map) app.getAttribute("zkplus.util.ThreadLocalListener.fieldsMap");
    _enabled = app.getConfiguration().isEventThreadEnabled();
    if (_fieldsMap == null) {
      _fieldsMap = new HashMap(8);
      final String PREF = "zkplus.util.ThreadLocalListener.fieldsMap";
      app.setAttribute(PREF, _fieldsMap);
      //read preference
      String val = app.getConfiguration().getPreference("ThreadLocal", null);
      if (val == null)
        val = Library.getProperty(PREF);
      if (val != null) {
        final Collection klassSets = CollectionsX.parse(null, val, ';');
        for(Iterator its = klassSets.iterator(); its.hasNext(); ) {
View Full Code Here

Examples of webapp.ifaces.WebApp

    }

    public static void main( final String[] args ) throws Exception
    {
        final Document parsedDocument = Main.getDocument( "/web.xml" );
        final WebApp webApp = XML2Java.bind( parsedDocument, WebApp.class );

        System.out.println();
        System.out.println( "Web application configuration: " );
        System.out.println();
        Main.printDescription( webApp.getDescription(), 0 );
        System.out.println();
        Main.printFilters( webApp.getFilters(), 0 );
        Main.printFilterMappings( webApp.getFilterMappings(), 0 )
        Main.printListeners( webApp.getListeners(), 0 );
        Main.printServlets( webApp.getServlets(), 0 );
        Main.printServletMappings( webApp.getServletMappings(), 0 );
        Main.printEnvEntries( webApp.getEnvEntries(), 0 );
        Main.printSessionConfig( webApp.getSessionConfig(), 0 );
        Main.printWelcomeFileList( webApp.getWelcomeFileList(), 0 );
    }
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.