Package com.sun.enterprise.deployment

Examples of com.sun.enterprise.deployment.WebBundleDescriptor$ServletFilterMappingInfo


  if( roles==null || roles.length==0 ) {
      return OK;
  }
 
  Context ctx=req.getContext();
  WebBundleDescriptor wbd = (WebBundleDescriptor)
      Switch.getSwitch().getDescriptorFor(ctx.getFacade());

  String appName="default";
  if(wbd != null)
      appName=wbd.getApplication().getName();
  if( debug>0) log("appname=" + appName);

  // call back the authenticate hooks
  String user=req.getRemoteUser();
  if( user==null ) {
View Full Code Here


       
        // now if this is a web bundle descriptor, we may need to rewrite the standard
        // deployment descriptors if we have web services since the servlet implementation
        // has been switched
        if (bundle.getModuleType().equals(ModuleType.WAR)) {
            WebBundleDescriptor webBundle = (WebBundleDescriptor) bundle;
            if (webBundle.hasWebServices()) {
                archivist.writeStandardDeploymentDescriptors(out);
            }
        }
    }
View Full Code Here

            // lifecycle modules get a legal ComponentInvocation.

            // create an invocation context that is of the type
            // SERVLET_INVOCATION
            final Context               invocationContext = new StandardContext();
            final WebBundleDescriptor   wbd               = new WebBundleDescriptor();
            Application.createApplication( mLifecycleModule.getName(),  wbd.getModuleDescriptor());
            invocationContext.setRealm( new RealmAdapter(wbd, false) );
            mLifecycleModule.onStartup( mServerContext, invocationContext);
        }
View Full Code Here

            InvocationManager invManager =
                Switch.getSwitch().getInvocationManager();
            ComponentInvocation inv = invManager.getCurrentInvocation();
            Object containerContext = inv.getContainerContext();

            WebBundleDescriptor webBundle = (WebBundleDescriptor)
                Switch.getSwitch().getDescriptorFor(containerContext);
            classLoader = Thread.currentThread().getContextClassLoader();
            servletName = servletConfig.getServletName();
            contextRoot = webBundle.getContextRoot();
            WebComponentDescriptor webComponent =
                webBundle.getWebComponentByCanonicalName(servletName);

            if( webComponent != null ) {
                WebServicesDescriptor webServices = webBundle.getWebServices();
                Collection endpoints =                    
                    webServices.getEndpointsImplementedBy(webComponent);
                // Only 1 endpoint per servlet is supported, even though
                // data structure implies otherwise.
                endpoint = (WebServiceEndpoint) endpoints.iterator().next();
View Full Code Here

        java.util.Set webBundles = this.application.getWebBundleDescriptors();
   
        for(Iterator it=webBundles.iterator(); it.hasNext(); ) {

            WebBundleDescriptor bundleDesc = (WebBundleDescriptor)it.next();

            try {
                Switch.getSwitch().getManagementObjectManager().
                    createWebModuleMBean(bundleDesc,
                    this.configManager.getInstanceEnvironment().getName(),
View Full Code Here

    public void deleteRootMBean () throws MBeanException{
        java.util.Set webBundles = this.application.getWebBundleDescriptors();

        for(Iterator it=webBundles.iterator(); it.hasNext(); ) {

            WebBundleDescriptor bundleDesc = (WebBundleDescriptor)it.next();

            Switch.getSwitch().getManagementObjectManager().
                deleteWebModuleMBean(bundleDesc,
                this.configManager.getInstanceEnvironment().getName());
        }
View Full Code Here

    public void setState(int state) throws MBeanException {
        java.util.Set webBundles = this.application.getWebBundleDescriptors();

        for(Iterator it=webBundles.iterator(); it.hasNext(); ) {

            WebBundleDescriptor bundleDesc = (WebBundleDescriptor)it.next();

            Switch.getSwitch().getManagementObjectManager().
                setWebModuleState(state, bundleDesc,
                this.configManager.getInstanceEnvironment().getName());
        }
View Full Code Here

            return false;
        }
        String j2eeApplication = appDesc.getRegistrationName();
       
        // get the Bundle Descriptor
        WebBundleDescriptor wbd = (WebBundleDescriptor)descriptor;
        String moduleName = wbd.getModuleDescriptor().getArchiveUri();
                           
        StringBuffer dir = new StringBuffer(location);
        dir.append(File.separator);
        dir.append(FileUtils.makeFriendlyFilename(moduleName));
        if (!(new File(dir.toString()).exists())) {
            dir = new StringBuffer(location).append(
                            File.separator).append(moduleName);
        }

        // set the values in the ExtensionModule config bean
        em = new com.sun.enterprise.config.serverbeans.ExtensionModule();
        em.setLocation(dir.toString().trim());
        em.setConfigContext(eventConfigContext);
        em.setName(moduleName);
        ElementProperty isConvergedProperty = new ElementProperty();
        isConvergedProperty.setName("isConverged");
        if(wbd.getContextRoot() != null) {
            isConvergedProperty.setValue("true");
            ElementProperty contextRootProperty = new ElementProperty();
            contextRootProperty.setName("contextRoot");
            contextRootProperty.setValue(wbd.getContextRoot());
            em.addElementProperty(contextRootProperty);
        } else {
            isConvergedProperty.setValue("false");
        }  
        em.addElementProperty(isConvergedProperty);
View Full Code Here

                            ddFile.write(bundle, os);
                            out.closeEntry();
                        }
                    } else {
                        if (aModule.getModuleType().equals(ModuleType.WAR)) {
                            WebBundleDescriptor webBundle =
                                (WebBundleDescriptor) aModule.getDescriptor();
                            if (webBundle.hasWebServices()) {
                                if (ddFile != null) {
                                    OutputStream os = out.putNextEntry(ddPath);
                                    ddFile.write(webBundle, os);
                                    out.closeEntry();
                                }
View Full Code Here

        } else {
            // Also if this is a web bundle descriptor, we always want to
            // rewrite the standard deployment descriptors if we have web
            // services since the servlet implementation has been switched
            if (bundle.getModuleType().equals(ModuleType.WAR)) {
                WebBundleDescriptor webBundle = (WebBundleDescriptor) bundle;
                if (webBundle.hasWebServices()) {
                    archivist.writeStandardDeploymentDescriptors(out);
                } else {
                    archivist.copyStandardDeploymentDescriptors(in, out);
                }
            } else {
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.WebBundleDescriptor$ServletFilterMappingInfo

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.