Class SocketFactoryFactory


  • public class SocketFactoryFactory
    extends java.lang.Object
    Instantiates SocketFactory based on the PGProperty.SOCKET_FACTORY.
    • Constructor Detail

      • SocketFactoryFactory

        public SocketFactoryFactory()
    • Method Detail

      • getSocketFactory

        public static javax.net.SocketFactory getSocketFactory​(java.util.Properties info)
                                                        throws PSQLException
        Instantiates SocketFactory based on the PGProperty.SOCKET_FACTORY.
        Parameters:
        info - connection properties
        Returns:
        socket factory
        Throws:
        PSQLException - if something goes wrong
      • getSslSocketFactory

        public static javax.net.ssl.SSLSocketFactory getSslSocketFactory​(java.util.Properties info)
                                                                  throws PSQLException
        Instantiates SSLSocketFactory based on the PGProperty.SSL_FACTORY.
        Parameters:
        info - connection properties
        Returns:
        SSL socket factory
        Throws:
        PSQLException - if something goes wrong