Examples of MailServer


Examples of com.btmatthews.maven.plugins.emailserver.MailServer

     * command. If the server daemon option is set the email servers are spun
     * off in a background thread.
     */
    public void execute() {
  final Monitor monitor = new Monitor(getMonitorKey(), getMonitorPort());
  final MailServer server = createServer();
  if (server != null) {
      server.setPortOffset(portOffset);
      server.setUseSSL(useSSL);
      server.start(this);
      if (daemon) {
    new Thread(new Runnable() {
        public void run() {
      monitor.runMonitor(server, RunMojo.this);
        }
View Full Code Here

Examples of com.btmatthews.maven.plugins.emailserver.MailServer

     */
    private MailServer createServer() {
  final ServerFactoryLocator locator = ServerFactoryLocator
    .getInstance(this);
  final ServerFactory factory = locator.getFactory(serverName);
  MailServer server;
  if (factory == null) {
      server = null;
  } else {
      server = (MailServer) factory.createServer();
  }
View Full Code Here

Examples of com.btmatthews.maven.plugins.emailserver.MailServer

     * command. If the server daemon option is set the email servers are spun
     * off in a background thread.
     */
    public void execute() {
        final Monitor monitor = new Monitor(getMonitorKey(), getMonitorPort());
        final MailServer server = createServer();
        if (server != null) {
            server.setPortOffset(portOffset);
            server.setUseSSL(useSSL);
            server.start(this);
            if (daemon) {
                new Thread(new Runnable() {
                    public void run() {
                        monitor.runMonitor(server, RunMojo.this);
                    }
View Full Code Here

Examples of com.btmatthews.maven.plugins.emailserver.MailServer

     */
    private MailServer createServer() {
        final ServerFactoryLocator locator = ServerFactoryLocator
                .getInstance(this);
        final ServerFactory factory = locator.getFactory(serverName);
        MailServer server;
        if (factory == null) {
            server = null;
        } else {
            server = (MailServer)factory.createServer();
        }
View Full Code Here

Examples of com.consol.citrus.mail.server.MailServer

        Map<String, MailServer> servers = beanDefinitionContext.getBeansOfType(MailServer.class);

        Assert.assertEquals(servers.size(), 3);

        // 1st mail server
        MailServer server = servers.get("mailServer1");
        Assert.assertEquals(server.getName(), "mailServer1");
        Assert.assertEquals(server.getPort(), 25);
        Assert.assertFalse(server.isAutoStart());
        Assert.assertFalse(server.isSplitMultipart());
        Assert.assertTrue(server.isAutoAccept());
        Assert.assertEquals(server.getEndpointAdapter().getClass(), ChannelEndpointAdapter.class);
        Assert.assertTrue(server.getJavaMailProperties().isEmpty());

        // 2nd mail server
        server = servers.get("mailServer2");
        Assert.assertEquals(server.getName(), "mailServer2");
        Assert.assertEquals(server.getPort(), 25000);
        Assert.assertFalse(server.isAutoStart());
        Assert.assertFalse(server.isSplitMultipart());
        Assert.assertFalse(server.isAutoAccept());
        Assert.assertTrue(server.getJavaMailProperties().isEmpty());

        // 3rd mail server
        server = servers.get("mailServer3");
        Assert.assertEquals(server.getName(), "mailServer3");
        Assert.assertEquals(server.getPort(), 25);
        Assert.assertFalse(server.isAutoStart());
        Assert.assertTrue(server.isSplitMultipart());
        Assert.assertTrue(server.isAutoAccept());
        Assert.assertEquals(server.getEndpointAdapter(), beanDefinitionContext.getBean("endpointAdapter"));
        Assert.assertEquals(server.getJavaMailProperties(), beanDefinitionContext.getBean("mailProperties"));
        Assert.assertEquals(server.getMessageConverter(), beanDefinitionContext.getBean("messageConverter", MessageConverter.class));
        Assert.assertFalse(server.getJavaMailProperties().isEmpty());
    }
View Full Code Here

Examples of org.apache.axis2.transport.mail.server.MailServer

        //start the mail server
        if (runningServerCount == 0) {
            SERVER_CONFIG_CONTEXT = createServerConfigurationContext();
            server =
                    new MailServer(
                            SERVER_CONFIG_CONTEXT,
                            Constants.POP_SERVER_PORT,
                            Constants.SMTP_SERVER_PORT);
        }
        runningServerCount++;
View Full Code Here

Examples of org.apache.axis2.transport.mail.server.MailServer

                                          operationName);
        UtilServer.start(TestingUtils.prefixBaseDirectory(org.apache.axis2.Constants.TESTING_PATH +
                        "mail-transport-server-enabledRepository"));
        UtilServer.deployService(service);
        mailServer =
                new MailServer(Constants.POP_SERVER_PORT,
                               Constants.SMTP_SERVER_PORT);
/*        SimpleMailListener ml = new SimpleMailListener();
        ml.init(serverConfigContext, serverConfigContext.getAxisConfiguration()
                .getTransportIn(new QName(Constants.TRANSPORT_MAIL)));
        ml.start();*/
 
View Full Code Here

Examples of org.apache.axis2.transport.mail.server.MailServer

                                          operationName);
        UtilServer.start(TestingUtils.prefixBaseDirectory(org.apache.axis2.Constants.TESTING_PATH +
                        "mail-transport-server-enabledRepository"));
        UtilServer.deployService(service);
        mailServer =
                new MailServer(Constants.POP_SERVER_PORT,
                               Constants.SMTP_SERVER_PORT);
/*        SimpleMailListener ml = new SimpleMailListener();
        ml.init(serverConfigContext, serverConfigContext.getAxisConfiguration()
                .getTransportIn(new QName(Constants.TRANSPORT_MAIL)));
        ml.start();*/
 
View Full Code Here

Examples of org.apache.axis2.transport.mail.server.MailServer

        //start the mail server
        if (runningServerCount == 0) {
            SERVER_CONFIG_CONTEXT = createServerConfigurationContext();
            server =
                    new MailServer(
                            SERVER_CONFIG_CONTEXT,
                            Constants.POP_SERVER_PORT,
                            Constants.SMTP_SERVER_PORT);
        }
        runningServerCount++;
View Full Code Here

Examples of org.apache.axis2.transport.mail.server.MailServer

        //start the mail server
        if (runningServerCount == 0) {
            SERVER_CONFIG_CONTEXT = createServerConfigurationContext();
            server =
                    new MailServer(
                            SERVER_CONFIG_CONTEXT,
                            MailSrvConstants.POP_SERVER_PORT,
                            MailSrvConstants.SMTP_SERVER_PORT);
        }
        runningServerCount++;
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.