Examples of addTransportOut()


Examples of org.apache.axis2.engine.AxisConfiguration.addTransportOut()

            TransportOutDescription transportOut = axisConfig.getTransportOut(transportName);
            if (transportOut != null) {
                transportOut.getSender().stop();
            } else {
                transportOut = transportPM.getTransportSender(transportName, true);
                axisConfig.addTransportOut(transportOut);
            }
            setParameters(transportOut, params);

            try {
                transportOut.getSender().init(cfgCtx, transportOut);
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.addTransportOut()

            TenantTransportSender transportSender = new TenantTransportSender(mainConfigCtx);
            //adding new transport outs
            // adding the two tenant specific transport senders
            TransportOutDescription httpOutDescription = new TransportOutDescription(Constants.TRANSPORT_HTTP);
            httpOutDescription.setSender(transportSender);
            tenantAxisConfig.addTransportOut(httpOutDescription);

            // adding the two tenant specific transport senders
            TransportOutDescription httpsOutDescription = new TransportOutDescription(Constants.TRANSPORT_HTTPS);
            httpsOutDescription.setSender(transportSender);
            tenantAxisConfig.addTransportOut(httpsOutDescription);
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.addTransportOut()

            tenantAxisConfig.addTransportOut(httpOutDescription);

            // adding the two tenant specific transport senders
            TransportOutDescription httpsOutDescription = new TransportOutDescription(Constants.TRANSPORT_HTTPS);
            httpsOutDescription.setSender(transportSender);
            tenantAxisConfig.addTransportOut(httpsOutDescription);

            // Set the work directory
            tenantConfigCtx.setProperty(ServerConstants.WORK_DIR,
                                        mainConfigCtx.getProperty(ServerConstants.WORK_DIR));
            SuperTenantCarbonContext.getCurrentContext(tenantConfigCtx).setTenantId(tenantId);
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.addTransportOut()

        AxisConfiguration config = new AxisConfiguration();
        TransportInDescription tIn = new TransportInDescription(new QName(Constants.TRANSPORT_LOCAL));
        config.addTransportIn(tIn);

        TransportOutDescription tOut = new TransportOutDescription(new QName(Constants.TRANSPORT_LOCAL));
        config.addTransportOut(tOut);


        LocalTransportReceiver.CONFIG_CONTEXT = new ConfigurationContext(config);

        service = new AxisService("testService");
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.addTransportOut()

        trpOutDesc.addParameter(new Parameter("mail.smtp.auth", "true"));

        MailTransportSender trpSender = new MailTransportSender();
        trpOutDesc.setSender(trpSender);

        axisCfg.addTransportOut(trpOutDesc);
        ConfigurationContext cfgCtx = new ConfigurationContext(axisCfg);

        trpSender.init(cfgCtx, trpOutDesc);
        return cfgCtx;
    }
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.addTransportOut()

    public ConfigurationContext getClientCfgCtx() throws Exception {
        AxisConfiguration axisCfg = new AxisConfiguration();
        TransportOutDescription trpOutDesc = new TransportOutDescription("vfs");
        VFSTransportSender trpSender = new VFSTransportSender();
        trpOutDesc.setSender(trpSender);
        axisCfg.addTransportOut(trpOutDesc);
        ConfigurationContext cfgCtx = new ConfigurationContext(axisCfg);

        trpSender.init(cfgCtx, trpOutDesc);
        return cfgCtx;
    }
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.addTransportOut()

    axisConfig.addTransportIn( tIn );

    TransportOutDescription tOut = new TransportOutDescription( "http" ); //$NON-NLS-1$
    StubTransportSender sender = new StubTransportSender();
    tOut.setSender( sender );
    axisConfig.addTransportOut( tOut );

    LocalTransportReceiver.CONFIG_CONTEXT = new ConfigurationContext( axisConfig );

    AxisServiceWsdlGenerator contentGenerator = new AxisServiceWsdlGenerator();
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.addTransportOut()

    axisCfg.addTransportIn( tIn );

    TransportOutDescription tOut = new TransportOutDescription( DEAFULT_TRANSPOT_PROTOCOL );
    StubTransportSender sender = new StubTransportSender();
    tOut.setSender( sender );
    axisCfg.addTransportOut( tOut );

    AxisWebServiceManager.currentAxisConfiguration = axisCfg;
    AxisWebServiceManager.currentAxisConfigContext = configContext;

    out = new ByteArrayOutputStream();
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.addTransportOut()

        AxisConfiguration config = new AxisConfiguration();
        TransportInDescription tIn = new TransportInDescription(new QName(Constants.TRANSPORT_LOCAL));
        config.addTransportIn(tIn);

        TransportOutDescription tOut = new TransportOutDescription(new QName(Constants.TRANSPORT_LOCAL));
        config.addTransportOut(tOut);


        LocalTransportReceiver.CONFIG_CONTEXT = new ConfigurationContext(config);

        service = new AxisService(new QName("testService"));
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.addTransportOut()

        trpInDesc.setReceiver(new UDPListener());
        axisCfg.addTransportIn(trpInDesc);
       
        TransportOutDescription trpOutDesc = new TransportOutDescription("udp");
        trpOutDesc.setSender(new UDPSender());
        axisCfg.addTransportOut(trpOutDesc);
       
        return cfgCtx;
    }
}
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.