Package org.apache.axis2.description

Examples of org.apache.axis2.description.TransportOutDescription.addParameter()


        TransportOutDescription trpOutDesc =
            new TransportOutDescription(MailConstants.TRANSPORT_NAME);
        // gmail
        trpOutDesc.addParameter(new Parameter("mail.smtp.class", TestTransport.class.getName()));
        trpOutDesc.addParameter(new Parameter("mail.smtp.host", "smtp.gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.port", "587"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.starttls.enable", "true"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.user", "synapse.test.1"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.from", "synapse.test.1@gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.password", "mailpassword"));
View Full Code Here


        TransportOutDescription trpOutDesc =
            new TransportOutDescription(MailConstants.TRANSPORT_NAME);
        // gmail
        trpOutDesc.addParameter(new Parameter("mail.smtp.class", TestTransport.class.getName()));
        trpOutDesc.addParameter(new Parameter("mail.smtp.host", "smtp.gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.port", "587"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.starttls.enable", "true"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.user", "synapse.test.1"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.from", "synapse.test.1@gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.password", "mailpassword"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.auth", "true"));
View Full Code Here

            new TransportOutDescription(MailConstants.TRANSPORT_NAME);
        // gmail
        trpOutDesc.addParameter(new Parameter("mail.smtp.class", TestTransport.class.getName()));
        trpOutDesc.addParameter(new Parameter("mail.smtp.host", "smtp.gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.port", "587"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.starttls.enable", "true"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.user", "synapse.test.1"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.from", "synapse.test.1@gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.password", "mailpassword"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.auth", "true"));
View Full Code Here

        // gmail
        trpOutDesc.addParameter(new Parameter("mail.smtp.class", TestTransport.class.getName()));
        trpOutDesc.addParameter(new Parameter("mail.smtp.host", "smtp.gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.port", "587"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.starttls.enable", "true"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.user", "synapse.test.1"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.from", "synapse.test.1@gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.password", "mailpassword"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.auth", "true"));

        trpOutDesc.setSender(new MailTransportSender());
View Full Code Here

        trpOutDesc.addParameter(new Parameter("mail.smtp.class", TestTransport.class.getName()));
        trpOutDesc.addParameter(new Parameter("mail.smtp.host", "smtp.gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.port", "587"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.starttls.enable", "true"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.user", "synapse.test.1"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.from", "synapse.test.1@gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.password", "mailpassword"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.auth", "true"));

        trpOutDesc.setSender(new MailTransportSender());
View Full Code Here

        trpOutDesc.addParameter(new Parameter("mail.smtp.host", "smtp.gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.port", "587"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.starttls.enable", "true"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.user", "synapse.test.1"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.from", "synapse.test.1@gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.password", "mailpassword"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.auth", "true"));

        trpOutDesc.setSender(new MailTransportSender());

        TransportInDescription trpInDesc =
View Full Code Here

        trpOutDesc.addParameter(new Parameter("mail.smtp.port", "587"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.starttls.enable", "true"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.user", "synapse.test.1"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.from", "synapse.test.1@gmail.com"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.password", "mailpassword"));
        trpOutDesc.addParameter(new Parameter("mail.smtp.auth", "true"));

        trpOutDesc.setSender(new MailTransportSender());

        TransportInDescription trpInDesc =
            new TransportInDescription(MailConstants.TRANSPORT_NAME);
View Full Code Here

            SynapseConfiguration synapseConfig = new SynapseConfiguration();
            AxisConfiguration axisConfig = new AxisConfiguration();
            synapseConfig.setAxisConfiguration(axisConfig);
            ConfigurationContext cfgCtx = new ConfigurationContext(axisConfig);
            SynapseEnvironment env = new Axis2SynapseEnvironment(cfgCtx, synapseConfig);
            axisConfig.addParameter(SynapseConstants.SYNAPSE_CONFIG, synapseConfig);
            axisConfig.addParameter(SynapseConstants.SYNAPSE_ENV, env);

            MessageContext msgCtx = TestUtils.getAxis2MessageContext(payload, null).
                    getAxis2MessageContext();
            msgCtx.setConfigurationContext(cfgCtx);
View Full Code Here

            AxisConfiguration axisConfig = new AxisConfiguration();
            synapseConfig.setAxisConfiguration(axisConfig);
            ConfigurationContext cfgCtx = new ConfigurationContext(axisConfig);
            SynapseEnvironment env = new Axis2SynapseEnvironment(cfgCtx, synapseConfig);
            axisConfig.addParameter(SynapseConstants.SYNAPSE_CONFIG, synapseConfig);
            axisConfig.addParameter(SynapseConstants.SYNAPSE_ENV, env);

            MessageContext msgCtx = TestUtils.getAxis2MessageContext(payload, null).
                    getAxis2MessageContext();
            msgCtx.setConfigurationContext(cfgCtx);
            msgCtx.setTo(new EndpointReference(SUB_MAN_URL));
View Full Code Here

    public MessageContext createAxis2MessageContext(SynapseEnvironment synEnv) throws AxisFault {
        MessageContext msgContext = new MessageContext();
        AxisConfiguration axisConfig = new AxisConfiguration();
        ConfigurationContext configContext = new ConfigurationContext(axisConfig);
        if (synEnv != null) {
            axisConfig.addParameter(SynapseConstants.SYNAPSE_ENV, synEnv);
        }
        msgContext.setConfigurationContext(configContext);

        return msgContext;
    }
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.