Top Description Constructors Methods
org.postgresql.core

public Class SocketFactoryFactory

extends Object
Class Inheritance
Imports
org.postgresql.PGProperty, org.postgresql.ssl.LibPQFactory, org.postgresql.util.GT, .ObjectFactory, .PSQLException, .PSQLState, java.util.Properties, javax.net.SocketFactory, javax.net.ssl.SSLSocketFactory

Instantiates SocketFactory based on the PGProperty#SOCKET_FACTORY.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static SocketFactory

Returns:

socket factory
getSocketFactory
(Properties
connection properties
info
)

Instantiates SocketFactory based on the PGProperty#SOCKET_FACTORY.

public static SSLSocketFactory

Returns:

SSL socket factory
getSslSocketFactory
(Properties
connection properties
info
)

Instantiates SSLSocketFactory based on the PGProperty#SSL_FACTORY.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SocketFactoryFactoryback to summary
public SocketFactoryFactory()

Method Detail

getSocketFactoryback to summary
public static SocketFactory getSocketFactory(Properties info) throws PSQLException

Instantiates SocketFactory based on the PGProperty#SOCKET_FACTORY.

Parameters
info:Properties

connection properties

Returns:SocketFactory

socket factory

Exceptions
PSQLException:
if something goes wrong
getSslSocketFactoryback to summary
public static SSLSocketFactory getSslSocketFactory(Properties info) throws PSQLException

Instantiates SSLSocketFactory based on the PGProperty#SSL_FACTORY.

Parameters
info:Properties

connection properties

Returns:SSLSocketFactory

SSL socket factory

Exceptions
PSQLException:
if something goes wrong