Package org.apache.axis2.transport.mail

Examples of org.apache.axis2.transport.mail.SimpleMailListener


    }

    protected void setUp() throws Exception {
        ConfigurationContext configContext = UtilsMailServer.start();
       
        SimpleMailListener ml = new SimpleMailListener();


        ml.init(configContext,
                configContext.getAxisConfiguration().getTransportIn(
                        new QName(Constants.TRANSPORT_MAIL)));
        ml.start();
//        configContext.getAxisConfiguration().engageModule(
//                new QName(Constants.MODULE_ADDRESSING));
        AxisService service =
                Utils.createSimpleService(serviceName,
                        Echo.class.getName(),
View Full Code Here


        AxisService service = Utils.createSimpleService(serviceName,
                Echo.class.getName(), operationName);
        configContext.getAxisConfiguration().addService(service);
        Utils.resolvePhases(configContext.getAxisConfiguration(), service);

        SimpleMailListener ml = new SimpleMailListener();

        ml.init(configContext, configContext.getAxisConfiguration()
                .getTransportIn(new QName(Constants.TRANSPORT_MAIL)));
        ml.start();

    }
View Full Code Here

            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.user", "server@127.0.0.1"));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.password", "axis2"));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.port", "1134"));
            transportIn.addParameter(
                new ParameterImpl("transport.mail.replyToAddress", "foo@127.0.0.1"));
            transportIn.setReciver(new SimpleMailListener());
            transportIn.getReciever().init(configContext,transportIn);

            TransportOutDescription transportOut =
                new TransportOutDescription(new QName(Constants.TRANSPORT_MAIL));
View Full Code Here

            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.user", "client@127.0.0.1"));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.password", "axis2"));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.port", "1134"));
            transportIn.addParameter(
                new ParameterImpl("transport.mail.replyToAddress", "client@127.0.0.1"));
            transportIn.setReciver(new SimpleMailListener());
            transportIn.getReciever().init(configContext,transportIn);

            TransportOutDescription transportOut =
                new TransportOutDescription(new QName(Constants.TRANSPORT_MAIL));
View Full Code Here

    protected void setUp() throws Exception {
        configContext = createNewConfigurationContext()
        //start the mail server     
        MailServer server = new MailServer(configContext,MailConstants.POP_SERVER_PORT,MailConstants.SMTP_SERVER_PORT);
       
        SimpleMailListener ml = new SimpleMailListener();
        ml.init(
            configContext,
            configContext.getAxisConfiguration().getTransportIn(
                new QName(Constants.TRANSPORT_MAIL)));
        ml.start();

        ServiceDescription service = new ServiceDescription(serviceName);
        OperationDescription operation = new OperationDescription(operationName);
        operation.setMessageReciever(new MessageReceiver() {
            public void recieve(MessageContext messgeCtx) throws AxisFault {
View Full Code Here

    }

    protected void setUp() throws Exception {
        ConfigurationContext configContext = createServerConfigurationContext();
        MailServer server = new MailServer(configContext,MailConstants.POP_SERVER_PORT,MailConstants.SMTP_SERVER_PORT);
        SimpleMailListener ml = new SimpleMailListener();

        
        ml.init(
            configContext,
            configContext.getAxisConfiguration().getTransportIn(
                new QName(Constants.TRANSPORT_MAIL)));
        ml.start();
        configContext.getAxisConfiguration().engageModule(new QName(Constants.MODULE_ADDRESSING));
        ServiceDescription service =
            Utils.createSimpleService(serviceName, Echo.class.getName(), operationName);
        configContext.getAxisConfiguration().addService(service);
        Utils.resolvePhases(configContext.getAxisConfiguration(), service);
View Full Code Here

        transportIn.addParameter(new ParameterImpl("transport.mail.pop3.user", "foo@127.0.0.1"));
        transportIn.addParameter(new ParameterImpl("transport.mail.pop3.password", "axis2"));
        transportIn.addParameter(new ParameterImpl("transport.mail.pop3.port", "1134"));
        transportIn.addParameter(
            new ParameterImpl("transport.mail.replyToAddress", "foo@127.0.0.1"));
        transportIn.setReciver(new SimpleMailListener());
        transportIn.getReciever().init(configContext,transportIn);

        TransportOutDescription transportOut =
            new TransportOutDescription(new QName(Constants.TRANSPORT_MAIL));
View Full Code Here

        transportIn.addParameter(new ParameterImpl("transport.mail.pop3.user", "bar@127.0.0.1"));
        transportIn.addParameter(new ParameterImpl("transport.mail.pop3.password", "axis2"));
        transportIn.addParameter(new ParameterImpl("transport.mail.pop3.port", "1134"));
        transportIn.addParameter(
            new ParameterImpl("transport.mail.replyToAddress", "bar@127.0.0.1"));
        transportIn.setReciver(new SimpleMailListener());
        transportIn.getReciever().init(configContext,transportIn);

        TransportOutDescription transportOut =
            new TransportOutDescription(new QName(Constants.TRANSPORT_MAIL));
View Full Code Here

    protected void setUp() throws Exception {
        //start the mail server     
        configContext = UtilsMailServer.start();

        SimpleMailListener ml = new SimpleMailListener();
        ml.init(configContext,
                configContext.getAxisConfiguration().getTransportIn(
                        new QName(Constants.TRANSPORT_MAIL)));
        ml.start();

        ServiceDescription service = new ServiceDescription(serviceName);
        OperationDescription operation = new OperationDescription(
                operationName);
        operation.setMessageReceiver(new MessageReceiver() {
View Full Code Here

    }

    protected void setUp() throws Exception {
        ConfigurationContext configContext = UtilsMailServer.start();
       
        SimpleMailListener ml = new SimpleMailListener();


        ml.init(configContext,
                configContext.getAxisConfiguration().getTransportIn(
                        new QName(Constants.TRANSPORT_MAIL)));
        ml.start();
//        configContext.getAxisConfiguration().engageModule(
//                new QName(Constants.MODULE_ADDRESSING));
        ServiceDescription service =
                Utils.createSimpleService(serviceName,
                        Echo.class.getName(),
View Full Code Here

TOP

Related Classes of org.apache.axis2.transport.mail.SimpleMailListener

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.