Examples of WebModule


Examples of com.google.apphosting.utils.config.WebModule

   */
  private synchronized void checkEnvironmentVariables() {
    EnvironmentVariableChecker environmentVariableChecker =
        new EnvironmentVariableChecker(environmentVariableMismatchReportingPolicy);
    for (ModuleConfigurationHandle moduleConfigurationHandle : moduleConfigurationHandles) {
      WebModule module = moduleConfigurationHandle.getModule();
      environmentVariableChecker.add(module.getAppEngineWebXml(), module.getAppEngineWebXmlFile());
    }
    environmentVariableChecker.check();
  }
View Full Code Here

Examples of com.sun.appserv.management.j2ee.WebModule

  }
 
    protected ObjectName
  queryMonitoringPeerFailed( final Map<String,String> propsMap )
  {
    final WebModule      webModule  = (WebModule)getContainer();
   
    debug( "queryMonitoringPeerFailed: expecting to find " +
        MapUtil.toString( propsMap ) );
       
    if ( webModule == null )
    {
        logWarning(
            "ServletImpl.queryMonitoringPeerFailed: " +
            "Can't get containing WebModule, my ObjectName = " + getObjectName());
            return null;
    }
   
    ObjectName  result  = null;
   
    try
    {
      final WebModuleVirtualServerMonitor  webModuleVirtualServerMonitor  =
        (WebModuleVirtualServerMonitor)webModule.getMonitoringPeer();
      if ( webModuleVirtualServerMonitor == null )
      {
          final ObjectName    objectName  = Util.getObjectName( webModule );
         
          final String msg = "ServletImpl.queryMonitoringPeerFailed: " +
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.WebModule

    public ModuleType getModuleType() {
        return ModuleType.WAR;
    }   

    private WebModule getWebModule(String modId) throws ConfigException {
        WebModule mod = (WebModule)
            ((Applications)this.configBean).getWebModuleByName(modId);
       
        if(mod == null)
            throw new ConfigException(Localizer.getValue(ExceptionType.NO_SUCH_WEB_MOD));
       
View Full Code Here

Examples of com.sun.enterprise.ee.admin.lbadmin.beans.WebModule

        }

        if ((wRdrs != null) &&  (wRdrs.length > 0 ) ){
            WebModule[] wMods = new WebModule[wRdrs.length];
            for(int i=0; i < wRdrs.length; i++) {
                wMods[i] = new WebModule();
                wRdrs[i].accept(new WebModuleVisitor(wMods[i], _c));
            }
            _c.setWebModule(wMods);
        }
    }
View Full Code Here

Examples of com.sun.enterprise.web.WebModule

        if(o instanceof StatelessSessionContainer) {
            StatelessSessionContainer cont = (StatelessSessionContainer) o;
            boolean res = cont.getSecurityManager().isCallerInRole(role);
            return res;
        } else if (o instanceof WebModule) {
            WebModule webModule = (WebModule)o;
            Realm realm = webModule.getRealm();
            if (realm instanceof RealmAdapter) {
                RealmAdapter realmAdapter = (RealmAdapter)realm;
                Principal princ = getUserPrincipal();
                return realmAdapter.hasRole(servletName, princ, role);
            }
View Full Code Here

Examples of com.sun.xml.internal.ws.api.server.WebModule

    }


    @NotNull
    public URI getAddress() {
        WebModule webModule = endpoint.getContainer().getSPI(WebModule.class);
        if(webModule==null)
            // this is really a bug in the container implementation
            throw new WebServiceException("Container "+endpoint.getContainer()+" doesn't support "+WebModule.class);

        return getAddress(webModule.getContextPath());
    }
View Full Code Here

Examples of com.sun.xml.ws.api.server.WebModule

    }


    @NotNull
    public URI getAddress() {
        WebModule webModule = endpoint.getContainer().getSPI(WebModule.class);
        if(webModule==null)
            // this is really a bug in the container implementation
            throw new WebServiceException("Container "+endpoint.getContainer()+" doesn't support "+WebModule.class);

        return getAddress(webModule.getContextPath());
    }
View Full Code Here

Examples of org.apache.geronimo.j2ee.deployment.WebModule

        }

        // Create the AnnotatedApp interface for the WebModule
        AnnotatedWebApp annotatedWebApp = new AnnotatedWebApp(webApp);

        WebModule module = new WebModule(standAlone, moduleName, environment, moduleFile, targetPath, webApp, jettyWebApp, specDD, contextRoot, JETTY_NAMESPACE, annotatedWebApp);

        for (ModuleBuilderExtension mbe : moduleBuilderExtensions) {
            mbe.createModule(module, plan, moduleFile, targetPath, specDDUrl, environment, contextRoot, earName, naming, idBuilder);
        }
        return module;
View Full Code Here

Examples of org.apache.geronimo.j2ee.deployment.WebModule

    }

    public void addGBeans(EARContext earContext, Module module, ClassLoader cl, Collection repository) throws DeploymentException {
        EARContext moduleContext = module.getEarContext();
        AbstractName moduleName = moduleContext.getModuleName();
        WebModule webModule = (WebModule) module;

        WebAppType webApp = (WebAppType) webModule.getSpecDD();
        JettyWebAppType jettyWebApp = (JettyWebAppType) webModule.getVendorDD();
        GBeanData webModuleData = new GBeanData(moduleName, JettyWebAppContext.GBEAN_INFO);

        configureBasicWebModuleAttributes(webApp, jettyWebApp, moduleContext, earContext, webModule, webModuleData);

        // unsharableResources, applicationManagedSecurityResources
        GBeanResourceEnvironmentBuilder rebuilder = new GBeanResourceEnvironmentBuilder(webModuleData);
        //N.B. use earContext not moduleContext
        //TODO fix this for javaee 5 !!!
        resourceEnvironmentSetter.setResourceEnvironment(rebuilder, webApp.getResourceRefArray(), jettyWebApp.getResourceRefArray());
        try {
            moduleContext.addGBean(webModuleData);
            Set<String> securityRoles = collectRoleNames(webApp);
            Map<String, PermissionCollection> rolePermissions = new HashMap<String, PermissionCollection>();

            // configure hosts and virtual-hosts
            configureHosts(earContext, jettyWebApp, webModuleData);


            String contextPath = webModule.getContextRoot();
            if (contextPath == null) {
                throw new DeploymentException("null contextPath");
            }
            if (!contextPath.startsWith("/")) {
                contextPath = "/" + contextPath;
View Full Code Here

Examples of org.apache.geronimo.j2ee.deployment.WebModule

            moduleName = naming.createChildName(earName, environment.getConfigId().toString(), NameFactory.WEB_MODULE);
        } else {
            moduleName = naming.createChildName(earName, targetPath, NameFactory.WEB_MODULE);
        }

        return new WebModule(standAlone, moduleName, environment, moduleFile, targetPath, webApp, jettyWebApp, specDD, contextRoot, sharedContext, JETTY_NAMESPACE);
    }
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.