public interface TransportProvider extends Provider
LDAPConnectionFactory
and LDAPListener
classes,
using a specific transport.
A transport provider must be declared in the provider-configuration file
META-INF/services/org.forgerock.opendj.ldap.spi.TransportProvider
in order to allow automatic loading of the implementation classes using the
java.util.ServiceLoader
facility.
Modifier and Type | Method and Description |
---|---|
LDAPConnectionFactoryImpl |
getLDAPConnectionFactory(String host,
int port,
Options options)
Returns an implementation of
LDAPConnectionFactory . |
LDAPListenerImpl |
getLDAPListener(InetSocketAddress address,
ServerConnectionFactory<LDAPClientContext,Integer> factory,
Options options)
Returns an implementation of
LDAPListener . |
LDAPConnectionFactoryImpl getLDAPConnectionFactory(String host, int port, Options options)
LDAPConnectionFactory
. The address
will be resolved each time a new connection is returned.host
- The hostname of the Directory Server to connect to.port
- The port number of the Directory Server to connect to.options
- The LDAP options to use when creating connections.LDAPConnectionFactory
LDAPListenerImpl getLDAPListener(InetSocketAddress address, ServerConnectionFactory<LDAPClientContext,Integer> factory, Options options) throws IOException
LDAPListener
.address
- The address to listen on.factory
- The server connection factory which will be used to create
server connections.options
- The LDAP listener options.LDAPListener
IOException
- If an error occurred while trying to listen on the provided
address.Copyright 2010-2017 ForgeRock AS.