Package com.sun.appserv.management.config

Examples of com.sun.appserv.management.config.WebModuleConfig


        SunTarget sunTarget = (SunTarget) tmid.getTarget();
        /*
         *Navigate to the Web app's proxy.
         */
        WebModuleConfig webProxy = (WebModuleConfig)getDomainConfigProxy().
            getContainee(XTypes.WEB_MODULE_CONFIG, moduleID);
       
        String path = webProxy.getContextRoot();
        if (!path.startsWith("/")) { //NOI18N
            path = "/" + path; //NOI18N
        }
       
        // Patchup code for fixing netbeans issue 6221411; Need to find a good solution for this and WSDL publishing
View Full Code Here


                    deployedItemRefConfig.setLBEnabled(true);
                }
                continue;
            }
            //Check to see if this is Web module
            final WebModuleConfig web =
                    mDomainConfig.getWebModuleConfigMap().get(deployedItemRefConfig.getName());
            if (web != null) {
                //if the type is user, then only set the lb-enabled to true
                if(web.getObjectType().equals(ObjectTypeValues.USER)) {
                    deployedItemRefConfig.setLBEnabled(true);
                }
                continue;
            }
            //Check to see if this is EJB module
View Full Code Here

      }
  }else
  if ("webApp".equals(appType)){
            module = AMXUtil.getDomainConfig().getWebModuleConfigMap().get(name);
      if (module != null){
                WebModuleConfig webModule = (WebModuleConfig) module;
    handlerCtx.setOutputValue("contextRoot", webModule.getContextRoot());
    handlerCtx.setOutputValue("availEnabled", webModule.getAvailabilityEnabled());
    if(!AMXUtil.supportCluster()) {
      //We need this only for PE, so hard code it "server"
      handlerCtx.setOutputValue("vs", TargetUtil.getAssociatedVS(name, "server"));
    }
      }
View Full Code Here

      }
  }else
  if ("webApp".equals(appType)){
      module = AMXUtil.getDomainConfig().getWebModuleConfigMap().get(name);
      if (module != null){
                WebModuleConfig webModule = (WebModuleConfig) module;
    webModule.setContextRoot((String)handlerCtx.getInputValue("contextRoot"));
                if (AMXUtil.isEE()){
                    Boolean ae = (Boolean)handlerCtx.getInputValue("availEnabled");
                    if (ae != null)
                        webModule.setAvailabilityEnabled(ae);
                }
    else {
      String vs = (String)handlerCtx.getInputValue("vs");
      //only for PE, so hard-code to 'server'
      TargetUtil.setVirtualServers(name, "server", vs);
View Full Code Here

       
        String serverName = (String) handlerCtx.getInputValue("serverName");
        Iterator<WebModuleConfig> iter = AMXUtil.getDomainConfig().getWebModuleConfigMap().values().iterator();
        List result = new ArrayList();
        while(iter.hasNext()){
            WebModuleConfig appConfig = iter.next();
            if (ObjectTypeValues.USER.equals(appConfig.getObjectType())){
                HashMap oneRow = new HashMap();
                String protocol = "http" ;
                String enable =  TargetUtil.getEnabledStatus(appConfig, true);
                oneRow.put("name", appConfig.getName());
                oneRow.put("enabled", enable);
                String contextRoot = appConfig.getContextRoot();
                oneRow.put("contextRoot", contextRoot);
                String port = getPortForApplication(appConfig.getName());
                if (port.startsWith("-") ){
                    protocol="https";
                    port = port.substring(1);
                }
                oneRow.put("port", port);
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.config.WebModuleConfig

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.