Package org.postgresql.core
Class SocketFactoryFactory
- java.lang.Object
-
- org.postgresql.core.SocketFactoryFactory
-
public class SocketFactoryFactory extends Object
InstantiatesSocketFactorybased on thePGProperty.SOCKET_FACTORY.
-
-
Constructor Summary
Constructors Constructor Description SocketFactoryFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SocketFactorygetSocketFactory(Properties info)InstantiatesSocketFactorybased on thePGProperty.SOCKET_FACTORY.static SSLSocketFactorygetSslSocketFactory(Properties info)InstantiatesSSLSocketFactorybased on thePGProperty.SSL_FACTORY.
-
-
-
Method Detail
-
getSocketFactory
public static SocketFactory getSocketFactory(Properties info) throws PSQLException
InstantiatesSocketFactorybased on thePGProperty.SOCKET_FACTORY.- Parameters:
info- connection properties- Returns:
- socket factory
- Throws:
PSQLException- if something goes wrong
-
getSslSocketFactory
public static SSLSocketFactory getSslSocketFactory(Properties info) throws PSQLException
InstantiatesSSLSocketFactorybased on thePGProperty.SSL_FACTORY.- Parameters:
info- connection properties- Returns:
- SSL socket factory
- Throws:
PSQLException- if something goes wrong
-
-