Package org.wso2.carbon.core.transports

Examples of org.wso2.carbon.core.transports.TransportPersistenceManager


   * @param transformer The optional image transformer
   * @throws java.io.IOException Failed to generate the representation
   */
    public static void generate(java.io.InputStream is, java.io.OutputStream os,
                SVGImageTransformer transformer) throws java.io.IOException {
        SVGImpl svg = generateSVGImpl(is);
       
        if (transformer == null) {
          String str=svg.getHeaders()+svg.generateSVGString();
          os.write(str.getBytes());
        } else {
          transformer.transform(svg, os);
        }
    }
View Full Code Here


        layoutManager.setVerticalLayout(true);
        layoutManager.setYSpacing(20);
        layoutManager.setYSpacing(50);
        layoutManager.layoutSVG(bpel.getRootActivity());

        SVGImpl svg = new SVGImpl();
        svg.setRootActivity(bpel.getRootActivity());
       
        return(svg);
    }
View Full Code Here

                throw new Exception(
                        "ConfigurationContext is not found while loading org.wso2.carbon.business.messaging.hl7.transport bundle");
            }

            // Save the transport configuration in the registry if not already done so
            new TransportPersistenceManager(configContext.getAxisConfiguration()).saveTransportConfiguration(HL7TransportService.TRANSPORT_NAME,
                    ctxt.getBundleContext().getBundle().getResource(HL7TransportService.TRANSPORT_CONF));

            // Instantiate HL7TransportService
            HL7Transport = new HL7TransportService();
View Full Code Here

            BundleContext bundleCtx = ctxt.getBundleContext();

            // Save the transport configuration in the registry if not already done so
            URL configURL = bundleCtx.getBundle().getResource(FIXTransportService.TRANSPORT_CONF);
            new TransportPersistenceManager(configContext.getAxisConfiguration()).
                    saveTransportConfiguration(FIXTransportService.TRANSPORT_NAME, configURL);
            TransportAxis2ConfigurationContextObserver cfgCtxObserver =
                    new TransportAxis2ConfigurationContextObserver(FIXTransportService.TRANSPORT_NAME, configURL);
            bundleCtx.registerService(Axis2ConfigurationContextObserver.class.getName(),
                                    cfgCtxObserver, null);
View Full Code Here

            BundleContext bundleCtx = ctxt.getBundleContext();

            // Save the transport configuration in the registry if not already done so
            URL configURL = bundleCtx.getBundle().getResource(TCPTransportService.TRANSPORT_CONF);
            new TransportPersistenceManager(configContext.getAxisConfiguration()).
                    saveTransportConfiguration(TCPTransportService.TRANSPORT_NAME, configURL);
            TransportAxis2ConfigurationContextObserver cfgCtxObserver =
                    new TransportAxis2ConfigurationContextObserver(TCPTransportService.TRANSPORT_NAME,
                                                                   configURL);
            bundleCtx.registerService(Axis2ConfigurationContextObserver.class.getName(),
View Full Code Here

            BundleContext bundleCtx = ctxt.getBundleContext();

            // Save the transport configuration in the registry if not already done so
            URL configURL = bundleCtx.getBundle().getResource(TRANSPORT_CONF);
            new TransportPersistenceManager(configContext.getAxisConfiguration()).
                    saveTransportConfiguration(TRANSPORT_NAME, configURL);
            TransportAxis2ConfigurationContextObserver cfgCtxObserver =
                    new TransportAxis2ConfigurationContextObserver(TRANSPORT_NAME, configURL);
            bundleCtx.registerService(Axis2ConfigurationContextObserver.class.getName(),
                                      cfgCtxObserver, null);
View Full Code Here

            return "Service [" + serviceId + "] already contains the " + transportProtocol
                   + " transport binding!";
        }

        Resource transportResource =
                new TransportPersistenceManager(getAxisConfig()).getTransportResource(transportProtocol);
        if (transportResource != null) {
            try {
                boolean transactionStarted = Transaction.isStarted();
                if (!transactionStarted) {
                    getConfigSystemRegistry().beginTransaction();
View Full Code Here

                getConfigSystemRegistry().beginTransaction();
            }
            Resource transportResource;
            if (!axisService.isEnableAllTransports()) {
                transportResource =
                        new TransportPersistenceManager(getAxisConfig()).
                                getTransportResource(transportProtocol);
                if (axisService.getExposedTransports().size() == 1) {
                    return SERVICE_MUST_CONTAIN_AT_LEAST_ONE_TRANSPORT;
                } else {
                    registry.removeAssociation(serviceResource.getPath(), transportResource.getPath(),
View Full Code Here

            }
            BundleContext bundleCtx = ctxt.getBundleContext();

            // Save the transport config in the registry if not already done so
            URL configURL = bundleCtx.getBundle().getResource(MailTransportService.TRANSPORT_CONF);
            new TransportPersistenceManager(configContext.getAxisConfiguration()).
                    saveTransportConfiguration(MailTransportService.TRANSPORT_NAME, configURL);
            TransportAxis2ConfigurationContextObserver cfgCtxObserver =
                    new TransportAxis2ConfigurationContextObserver(MailTransportService.TRANSPORT_NAME, configURL);
            bundleCtx.registerService(Axis2ConfigurationContextObserver.class.getName(),
                                      cfgCtxObserver, null);
View Full Code Here

            }
            BundleContext bundleCtx = ctxt.getBundleContext();

            // Save the transport configuration to the registry if not already done so
            URL configURL = bundleCtx.getBundle().getResource(VFSTransportService.TRANSPORT_CONF);
            new TransportPersistenceManager(configContext.getAxisConfiguration()).
                    saveTransportConfiguration(VFSTransportService.TRANSPORT_NAME, configURL);
            TransportAxis2ConfigurationContextObserver cfgCtxObserver =
                    new TransportAxis2ConfigurationContextObserver(VFSTransportService.TRANSPORT_NAME,
                                                                   configURL);
            bundleCtx.registerService(Axis2ConfigurationContextObserver.class.getName(),
View Full Code Here

TOP

Related Classes of org.wso2.carbon.core.transports.TransportPersistenceManager

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.