Examples of AxisServiceGroup


Examples of org.apache.axis2.description.AxisServiceGroup

     * TODO: Do we need this in ServiceAdmin?
     */
    public ServiceGroupMetaData listServiceGroup(String serviceGroupName) throws AxisFault {
        ServiceGroupMetaData sgmd = new ServiceGroupMetaData();

        AxisServiceGroup serviceGroup = getAxisConfig().getServiceGroup(serviceGroupName);
        sgmd.setServiceGroupName(serviceGroup.getServiceGroupName());

        Parameter parameter = serviceGroup.getParameter(Constants.Configuration.ENABLE_MTOM);
        if (parameter != null) {
            sgmd.setMtomStatus((String) parameter.getValue());
        }

        return sgmd;
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

   public int getNumberOfServiceGroups(){
       int numOfserviceGroups = 0;
       for(Iterator<AxisServiceGroup> serviceGroups = getAxisConfig().getServiceGroups();
           serviceGroups.hasNext();){
           AxisServiceGroup serviceGroup = serviceGroups.next();
           if (!SystemFilter.isFilteredOutService(serviceGroup)) {
               if (!serviceGroup.getServices().hasNext() ||
                   serviceGroup.getServices().next().isClientSide()) {
                   continue; // No advancement of currentIndex
               }
               numOfserviceGroups++;
           }
       }
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

        return isDeleted;
    }

    public void deleteAllNonAdminServiceGroups() throws AxisFault {
        for (Iterator iter = getAxisConfig().getServiceGroups(); iter.hasNext();) {
            AxisServiceGroup asGroup = (AxisServiceGroup) iter.next();
            if (!SystemFilter.isFilteredOutService(asGroup)) {
                deleteServiceGroup(asGroup.getServiceGroupName());
            }
        }
    }
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

    }

    private void deleteServiceGroup(String serviceGroupName) throws AxisFault {

        AxisConfiguration axisConfig = getAxisConfig();
        AxisServiceGroup asGroup = axisConfig.getServiceGroup(serviceGroupName);

        if (asGroup == null) {
            throw new AxisFault("Invalid service group name " + serviceGroupName);
        }

        if (SystemFilter.isFilteredOutService(asGroup)) {
            String msg = "Cannot delete admin service group " + serviceGroupName;
            log.error(msg);
            throw new AxisFault(msg);
        }

        String fileName = null;
        for (Iterator serviceIter = asGroup.getServices(); serviceIter.hasNext();) {
            AxisService axisService = (AxisService) serviceIter.next();
            URL fn = axisService.getFileName();
            if (fn != null) {
                fileName = fn.getPath();
            }
            // removing the service from axis configuration
            axisConfig.removeService(axisService.getName());
        }
        // remove the service group from axis config and config context
        AxisServiceGroup serviceGroup = axisConfig.removeServiceGroup(asGroup.getServiceGroupName());
        if (serviceGroup != null) {
            getConfigContext().removeServiceGroupContext(serviceGroup);
      log.info(Messages.getMessage(DeploymentErrorMsgs.SERVICE_REMOVED,
                    fileName != null ? fileName : serviceGroupName));
        } else {
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

        serviceMetaData.setEprs(eprs);
        serviceMetaData.setServiceType(serviceType);
        AxisConfiguration axisConfiguration = getAxisConfig();
        serviceMetaData.setWsdlURLs(Utils.getWsdlInformation(serviceName, axisConfiguration));
        serviceMetaData.setTryitURL(Utils.getTryitURL(serviceName, getConfigContext()));
        AxisServiceGroup serviceGroup = (AxisServiceGroup) service.getParent();
        serviceMetaData.setFoundWebResources(serviceGroup.isFoundWebResources());
        serviceMetaData.setScope(service.getScope());
        serviceMetaData.setServiceGroupName(serviceGroup.getServiceGroupName());

        SecurityScenarioData securityScenario = getSecurityScenario(serviceName);
        if (securityScenario != null) {
            serviceMetaData.setSecurityScenarioId(securityScenario.getScenarioId());
        }
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

                ArrayList<URL> urls = new ArrayList<URL>();
                urls.add(deploymentFileData.getFile().toURL());

                List<String> classList = Utils.getListOfClasses(deploymentFileData);
                //Setting the OSGI class loader
                AxisServiceGroup serviceGroup = deployClasses(groupName, location,
                        Thread.currentThread().getContextClassLoader(), classList);
                if (serviceGroup == null) {
                    String msg = "Error:\n No @WebService annotated service implementations found in the jar: " +
                            location.toString() +
                            ". Service deployment failed.";
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

        int size = axisServiceList.size();
        if (size <= 0) {
            return null;
        }
        //creating service group by considering the hierarchical path also
        AxisServiceGroup serviceGroup = new AxisServiceGroup();
        serviceGroup.setServiceGroupName(groupName);
        for (AxisService axisService : axisServiceList) {
            axisService.setName(axisService.getName());
            serviceGroup.addService(axisService);
        }
        configurationContext.getAxisConfiguration().addServiceGroup(serviceGroup);
        configureAddressing(serviceGroup);
        return serviceGroup;
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

        AxisService service = new AxisService(MultitenantConstants.MULTITENANT_DISPATCHER_SERVICE);
        AxisOperation operation =
                new InOutAxisOperation(MultitenantConstants.MULTITENANT_DISPATCHER_OPERATION);
        operation.setMessageReceiver(new MultitenantMessageReceiver());
        service.addOperation(operation);
        AxisServiceGroup multitenantSvcGroup = new AxisServiceGroup(axisCfg);
        multitenantSvcGroup.setServiceGroupName(MultitenantConstants.MULTITENANT_DISPATCHER_SERVICE);
        multitenantSvcGroup.addParameter(CarbonConstants.HIDDEN_SERVICE_PARAM_NAME, "true");
        multitenantSvcGroup.addService(service);
        axisCfg.addServiceGroup(multitenantSvcGroup);
        log.info("Deployed " + MultitenantConstants.MULTITENANT_DISPATCHER_SERVICE);
    }
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

        boolean successfullyDeployed = false;
        String serviceStatus = null;
        String jsFileName = deploymentFileData.getName();
        try {
            deploymentFileData.setClassLoader(axisConfig.getServiceClassLoader());
            AxisServiceGroup serviceGroup = new AxisServiceGroup(axisConfig);
            serviceGroup.setServiceGroupClassLoader(deploymentFileData.getClassLoader());

            ArrayList serviceList =
                    processService(deploymentFileData, serviceGroup, configCtx, username);

            DeploymentEngine.addServiceGroup(serviceGroup, serviceList,
View Full Code Here

Examples of org.apache.axis2.description.AxisServiceGroup

            folder
            */
            String username = tokenizer.nextToken();

            String serviceGroupName = username + MashupConstants.SEPARATOR_CHAR + jsFileNameShort;
            AxisServiceGroup group = axisConfig.getServiceGroup(serviceGroupName);
            AxisService service;
            if (group != null) {
                Iterator iterator = group.getServices();
                service = (AxisService) iterator.next();
            } else {
                // May be a faulty service
                axisConfig.removeFaultyService(jsFilePath);
                return;
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.