Package org.postgresql.core
Class SocketFactoryFactory
java.lang.Object
org.postgresql.core.SocketFactoryFactory
Instantiates
SocketFactory based on the PGProperty.SOCKET_FACTORY.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SocketFactorygetSocketFactory(Properties info) InstantiatesSocketFactorybased on thePGProperty.SOCKET_FACTORY.static SSLSocketFactoryInstantiatesSSLSocketFactorybased on thePGProperty.SSL_FACTORY.
-
Constructor Details
-
SocketFactoryFactory
public SocketFactoryFactory()
-
-
Method Details
-
getSocketFactory
InstantiatesSocketFactorybased on thePGProperty.SOCKET_FACTORY.- Parameters:
info- connection properties- Returns:
- socket factory
- Throws:
PSQLException- if something goes wrong
-
getSslSocketFactory
InstantiatesSSLSocketFactorybased on thePGProperty.SSL_FACTORY.- Parameters:
info- connection properties- Returns:
- SSL socket factory
- Throws:
PSQLException- if something goes wrong
-