Package org.jvnet.glassfish.comms.deployment.backend

Examples of org.jvnet.glassfish.comms.deployment.backend.SipApplication


                    servletName + "," + "ExtensionModule=" + moduleName + "," +
                    "J2EEApplication=" + applicationName);
            }
           
            if (bd instanceof SipBundleDescriptor) {
                SipApplication sipApp = (SipApplication)((SipBundleDescriptor) bd).getSipApplication();
                if (sipApp != null) {
                    Iterator servlets = ((SipApplication)sipApp).getServlets().keySet().iterator();
                    while (servlets.hasNext()) {
                        servletName = (String) servlets.next();
                        if ((servletName == null) || (servletName.trim().length() == 0)) {
View Full Code Here


                    servletName + "," + "ExtensionModule=" + moduleName + "," +
                    "J2EEApplication=" + applicationName);
            }
           
            if (bd instanceof SipBundleDescriptor) {
                SipApplication sipApp = (SipApplication)((SipBundleDescriptor) bd).getSipApplication();
                if (sipApp != null) {
                    Iterator servlets = ((SipApplication)sipApp).getServlets().keySet().iterator();
                    while (servlets.hasNext()) {
                        servletName = (String) servlets.next();
                        if ((servletName == null) || (servletName.trim().length() == 0)) {
View Full Code Here

        public ConvergedApplicationContext(String basePath,
                ConvergedContextImpl context) {
            super(basePath, context);
            if (context != null) {
                SipApplication sa = context.getSipApplication();
                if (sa != null) {
                    Object o = sa.getReferringDescriptor();
                    if (o instanceof SipBundleDescriptor) {
                        isConverged = ((SipBundleDescriptor)o).isConverged();
                    }
                }
            }
View Full Code Here

     */   
    public void addDescriptor(Object  newDescriptor) {      
        if (newDescriptor instanceof ServletMapping) { 
            if( getParentNode() instanceof SipBundleNode) {
                SipBundleNode parentNode = (SipBundleNode) getParentNode();
                SipApplication sipApp = (SipApplication) parentNode.getDescriptor();
                ServletMapping servletMapping = (ServletMapping) newDescriptor;
                sipApp.addServletMapping(servletMapping);
            }
        }
    }
View Full Code Here

    */   
    public Object getDescriptor() {
               
        if( getParentNode() instanceof  SipBundleNode ) {
            SipBundleNode parentNode = (SipBundleNode) getParentNode();
            SipApplication sipApp = (SipApplication) parentNode.getDescriptor();
            descriptor = sipApp;
        }
       
        return descriptor;
    }
View Full Code Here

     */
    public Object getDescriptor() {
         if(descriptor==null){
        descriptor = new SipBundleDescriptor();
      }
        SipApplication sipApp = descriptor.getSipApplication();

        if (sipApp == null) {
            sipApp = new SipApplication();
            descriptor.setSipApplication(sipApp);
           sipApp.setReferringDescriptor(descriptor)
        }

        return sipApp;
    }
View Full Code Here

                if (!manager.inService()) {
                    new DescriptorProcessor().process(pContextId, convergedContext.getSipApplication());
                }
                convergedContext.getDispatcher().setContextId(pContextId);

                SipApplication application = convergedContext.getSipApplication();
                Map<String, org.jvnet.glassfish.comms.deployment.backend.Servlet> map = application.getServlets();
                Collection<org.jvnet.glassfish.comms.deployment.backend.Servlet> coll = map.values();
                Iterator<org.jvnet.glassfish.comms.deployment.backend.Servlet> itr = coll.iterator();
                HashMap<String, String> runAsMap = new HashMap<String, String>();

                while (itr.hasNext()) {
View Full Code Here

    /**
     * configureServletContextAttributes is called upon start of contextconfig.
     *
     */
    private void configureServletContextAttributes() {
        SipApplication sipApplication = convergedContext.getSipApplication();
        ServletContext servletContext = convergedContext.getServletContext();

        SipApplicationListeners sipApplicationListeners = new SipApplicationListeners(((SipApplication) sipApplication).getListeners(), context.getLoader().getClassLoader());

        convergedContext.setSipApplicationListeners(sipApplicationListeners);
View Full Code Here

        }
    }
   
    private void setContextApplicationName() {
       
        SipApplication sipApplication = convergedContext.getSipApplication();
        String appName = sipApplication.getAppName();
       
        String sipModuleName = null;       
        //Mostly an 1.0 application.
        String tmp = sipApplication.getModuleID().toLowerCase();
        if (tmp.endsWith("war") || tmp.endsWith(".sar")) {
            sipModuleName = sipApplication.getModuleID().substring(0, tmp.length() - 4);
        } else {
             sipModuleName = sipApplication.getModuleID();
        }               
       
        SipBundleDescriptor sbd = (SipBundleDescriptor) getDescriptor();
       
        /**
 
View Full Code Here

            contextConfigOk = false;
            logger.log(Level.WARNING, "contextConfig.unavailable");
        }

        setContextApplicationName();
        SipApplication sipApplication = convergedContext.getSipApplication();               
        ServletContext servletContext = convergedContext.getServletContext();

        // SSA 1.0, section 4.2, here we can add new extensions.
        // The only extensions we support right now is 100rel and path.
        List<String> supportedExt = new ArrayList<String>();
View Full Code Here

TOP

Related Classes of org.jvnet.glassfish.comms.deployment.backend.SipApplication

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.