Package org.apache.axis2.deployment

Examples of org.apache.axis2.deployment.ServiceBuilder


        if (ais != null) {
            log.debug("Configuring service " + axisService.getName() + " using: " + service_file);
            try {
                if (configCtx == null)
                    configCtx = new ConfigurationContext(axisService.getAxisConfiguration());
                ServiceBuilder builder = new ServiceBuilder(ais, configCtx, axisService);
                builder.populateService(builder.buildOM());
            } finally {
                ais.close();
            }
            // the service builder only updates the module list but do not engage them
            // modules have to be engaged manually,
View Full Code Here


            }

            axisService.setParent(axisServiceGroup);
            axisService.setClassLoader(currentFile.getClassLoader());

            ServiceBuilder serviceBuilder = new ServiceBuilder(configCtx, axisService);
            serviceBuilder.setWsdlServiceMap(wsdlServices);
            AxisService service = serviceBuilder.populateService(rootElement);

            ArrayList serviceList = new ArrayList();
            serviceList.add(service);
            return serviceList;
        } else if (TAG_SERVICE_GROUP.equals(elementName)) {
View Full Code Here

            AxisService service = new AxisService();
            service.setName("testService");
            ar.addService(service);
            InputStream in = new FileInputStream(repo + "/service1.xml");
            ServiceBuilder sbuilder = new ServiceBuilder(in, configurationContext, service);
            sbuilder.populateService(sbuilder.buildOM());

            ModuleConfiguration moduleConfiguration =
                    service.getModuleConfig("Servie_module");
            assertNotNull(moduleConfiguration);
            Parameter para = moduleConfiguration.getParameter("Servie_module_para");
View Full Code Here

        try {
            assertNotNull(ar);
            AxisService service = new AxisService();
            ar.addService(service);
            InputStream in = new FileInputStream(repo + "/service_overide_non_locked_para.xml");
            ServiceBuilder sbuilder = new ServiceBuilder(in, null, service);
            sbuilder.populateService(sbuilder.buildOM());
            assertNotNull(sbuilder);

        } catch (FileNotFoundException e) {
            fail("This can not fail with this FileNotFoundException " + e);
        } catch (DeploymentException e) {
View Full Code Here

        try {
            assertNotNull(ar);
            AxisService service = new AxisService();
            ar.addService(service);
            InputStream in = new FileInputStream(repo + "/service_overide_locked_para.xml");
            ServiceBuilder sbuilder = new ServiceBuilder(in, null, service);
            sbuilder.populateService(sbuilder.buildOM());
            assertNotNull(sbuilder);
            fail("Parmter is locked can not overide");
        } catch (FileNotFoundException e) {
            fail("This can not fail with this FileNotFoundException " + e);
        } catch (DeploymentException e) {
View Full Code Here

        try {
            assertNotNull(ar);
            AxisService service = new AxisService();
            ar.addService(service);
            InputStream in = new FileInputStream(repo + "/op_overide_global_para.xml");
            ServiceBuilder sbuilder = new ServiceBuilder(in, null, service);
            sbuilder.populateService(sbuilder.buildOM());
            assertNotNull(sbuilder);
            fail("Parmter is locked can not overide");
        } catch (FileNotFoundException e) {
            fail("This can not fail with this FileNotFoundException " + e);
        } catch (DeploymentException e) {
View Full Code Here

        try {
            assertNotNull(ar);
            AxisService service = new AxisService();
            ar.addService(service);
            InputStream in = new FileInputStream(repo + "/Op_overide_Service_para.xml");
            ServiceBuilder sbuilder = new ServiceBuilder(in, null, service);
            sbuilder.populateService(sbuilder.buildOM());
            fail("Parmter is locked can not overide");
        } catch (FileNotFoundException e) {
            fail("This can not fail with this FileNotFoundException " + e);
        } catch (DeploymentException e) {
View Full Code Here

            String opName = null;

            if (synCtx.getProperty(SynapseConstants.ENDPOINT_OPERATION) != null) {
                opName = synCtx.getProperty(SynapseConstants.ENDPOINT_OPERATION).toString();
            } else if (synCtx instanceof Axis2MessageContext) {
                AxisOperation operation
                        = ((Axis2MessageContext) synCtx).getAxis2MessageContext().getAxisOperation();
                if (operation != null) {
                    opName = operation.getName().getLocalPart();
                }
                if (opName == null ||
                        SynapseConstants.SYNAPSE_OPERATION_NAME.getLocalPart().equals(opName)) {
                    String soapAction = synCtx.getSoapAction();
                    opName = null;
View Full Code Here

            StandardFileSystemManager fsm = new StandardFileSystemManager();
            fsm.setConfiguration(getClass().getClassLoader().getResource("providers.xml"));
            fsm.init();
            this.workerPool = super.workerPool;
            fsManager = fsm;
            Parameter lockFlagParam = getTransportInDescription().getParameter(VFSConstants.TRANSPORT_FILE_LOCKING);
            if (lockFlagParam != null) {
                String strLockingFlag = lockFlagParam.getValue().toString();
                // by-default enabled, if explicitly specified as "disable" make it disable
                if (VFSConstants.TRANSPORT_FILE_LOCKING_DISABLED.equals(strLockingFlag)) {
                    globalFileLockingFlag = false;
                }
            }
View Full Code Here

        if (cTypeProperty != null) {
            return cTypeProperty.toString();
        }

        // Try to get the content type from the axis configuration
        Parameter cTypeParam = cfgCtx.getAxisConfiguration().getParameter(
                NhttpConstants.CONTENT_TYPE);
        if (cTypeParam != null) {
            return cTypeParam.getValue().toString();
        }

        // Unable to determine the content type - Return default value
        return NhttpConstants.DEFAULT_CONTENT_TYPE;
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.deployment.ServiceBuilder

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.