All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openhealthtools.ihe.atna.test.SyslogServerFactory Maven / Gradle / Ivy

There is a newer version: 3.6-20170926
Show newest version
package org.openhealthtools.ihe.atna.test;

import io.vertx.core.Verticle;
import io.vertx.ext.unit.Async;

/**
 *
 */
public final class SyslogServerFactory {

    public static Verticle createUDPServer(String host, int port, Async async){
        return new UDPSyslogServer(host, port, async);
    }

    public static Verticle createTCPServer(int port, Async async){
        return new TCPSyslogServer(port, async);
    }

    public static Verticle createTCPServerOneWayTLS(int port, String keystorePath, String keystorePassword, Async async){
        return new TCPSyslogServer(port, "NONE", null, null, keystorePath, keystorePassword, async);
    }

    public static Verticle createTCPServerTwoWayTLS(int port,
                                                    String truststorePath, String truststorePassword,
                                                    String keystorePath, String keystorePassword, Async async){
        return new TCPSyslogServer(port, "REQUIRED", truststorePath, truststorePassword,
                                   keystorePath, keystorePassword, async);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy