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 SocketFactory
getSocketFactory
(Properties info) InstantiatesSocketFactory
based on thePGProperty.SOCKET_FACTORY
.static SSLSocketFactory
InstantiatesSSLSocketFactory
based on thePGProperty.SSL_FACTORY
.
-
Constructor Details
-
SocketFactoryFactory
public SocketFactoryFactory()
-
-
Method Details
-
getSocketFactory
InstantiatesSocketFactory
based on thePGProperty.SOCKET_FACTORY
.- Parameters:
info
- connection properties- Returns:
- socket factory
- Throws:
PSQLException
- if something goes wrong
-
getSslSocketFactory
InstantiatesSSLSocketFactory
based on thePGProperty.SSL_FACTORY
.- Parameters:
info
- connection properties- Returns:
- SSL socket factory
- Throws:
PSQLException
- if something goes wrong
-