Class VeniceSocketConnectorFactory


  • public class VeniceSocketConnectorFactory
    extends java.lang.Object
    Creates socket connectors.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.eclipse.jetty.server.ServerConnector createSecureSocketConnector​(org.eclipse.jetty.server.Server server, java.lang.String host, int port, spark.ssl.SslStores sslStores, boolean trustForwardHeaders)
      Creates a ssl jetty socket jetty.
      static org.eclipse.jetty.server.ServerConnector createSocketConnector​(org.eclipse.jetty.server.Server server, java.lang.String host, int port, boolean trustForwardHeaders)
      Creates an ordinary, non-secured Jetty server jetty.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VeniceSocketConnectorFactory

        public VeniceSocketConnectorFactory()
    • Method Detail

      • createSocketConnector

        public static org.eclipse.jetty.server.ServerConnector createSocketConnector​(org.eclipse.jetty.server.Server server,
                                                                                     java.lang.String host,
                                                                                     int port,
                                                                                     boolean trustForwardHeaders)
        Creates an ordinary, non-secured Jetty server jetty.
        Parameters:
        server - Jetty server
        host - host
        port - port
        Returns:
        - a server jetty
      • createSecureSocketConnector

        public static org.eclipse.jetty.server.ServerConnector createSecureSocketConnector​(org.eclipse.jetty.server.Server server,
                                                                                           java.lang.String host,
                                                                                           int port,
                                                                                           spark.ssl.SslStores sslStores,
                                                                                           boolean trustForwardHeaders)
        Creates a ssl jetty socket jetty. Keystore required, truststore optional. If truststore not specified keystore will be reused.
        Parameters:
        server - Jetty server
        sslStores - the security sslStores.
        host - host
        port - port
        Returns:
        a ssl socket jetty