Package org.postgresql.core
Class SocketFactoryFactory
- java.lang.Object
-
- org.postgresql.core.SocketFactoryFactory
-
public class SocketFactoryFactory extends Object
InstantiatesSocketFactory
based on thePGProperty.SOCKET_FACTORY
.
-
-
Constructor Summary
Constructors Constructor Description SocketFactoryFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SocketFactory
getSocketFactory(Properties info)
InstantiatesSocketFactory
based on thePGProperty.SOCKET_FACTORY
.static SSLSocketFactory
getSslSocketFactory(Properties info)
InstantiatesSSLSocketFactory
based on thePGProperty.SSL_FACTORY
.
-
-
-
Method Detail
-
getSocketFactory
public static SocketFactory getSocketFactory(Properties info) throws PSQLException
InstantiatesSocketFactory
based 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
InstantiatesSSLSocketFactory
based on thePGProperty.SSL_FACTORY
.- Parameters:
info
- connection properties- Returns:
- SSL socket factory
- Throws:
PSQLException
- if something goes wrong
-
-