Package org.postgresql.core
Class SocketFactoryFactory
- java.lang.Object
-
- org.postgresql.core.SocketFactoryFactory
-
public class SocketFactoryFactory extends java.lang.ObjectInstantiatesSocketFactorybased on thePGProperty.SOCKET_FACTORY.
-
-
Constructor Summary
Constructors Constructor Description SocketFactoryFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.net.SocketFactorygetSocketFactory(java.util.Properties info)InstantiatesSocketFactorybased on thePGProperty.SOCKET_FACTORY.static javax.net.ssl.SSLSocketFactorygetSslSocketFactory(java.util.Properties info)InstantiatesSSLSocketFactorybased on thePGProperty.SSL_FACTORY.
-
-
-
Method Detail
-
getSocketFactory
public static javax.net.SocketFactory getSocketFactory(java.util.Properties info) throws PSQLExceptionInstantiatesSocketFactorybased on thePGProperty.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 PSQLExceptionInstantiatesSSLSocketFactorybased on thePGProperty.SSL_FACTORY.- Parameters:
info- connection properties- Returns:
- SSL socket factory
- Throws:
PSQLException- if something goes wrong
-
-