Package org.postgresql.core
Class SocketFactoryFactory
- java.lang.Object
-
- org.postgresql.core.SocketFactoryFactory
-
public class SocketFactoryFactory extends java.lang.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 javax.net.SocketFactory
getSocketFactory(java.util.Properties info)
InstantiatesSocketFactory
based on thePGProperty.SOCKET_FACTORY
.static javax.net.ssl.SSLSocketFactory
getSslSocketFactory(java.util.Properties info)
InstantiatesSSLSocketFactory
based on thePGProperty.SSL_FACTORY
.
-
-
-
Method Detail
-
getSocketFactory
public static javax.net.SocketFactory getSocketFactory(java.util.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 javax.net.ssl.SSLSocketFactory getSslSocketFactory(java.util.Properties info) throws PSQLException
InstantiatesSSLSocketFactory
based on thePGProperty.SSL_FACTORY
.- Parameters:
info
- connection properties- Returns:
- SSL socket factory
- Throws:
PSQLException
- if something goes wrong
-
-