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,
LDAPOptions options)
Returns an implementation of
LDAPConnectionFactory. |
LDAPListenerImpl |
getLDAPListener(InetSocketAddress address,
ServerConnectionFactory<LDAPClientContext,Integer> factory,
LDAPListenerOptions options)
Returns an implementation of
LDAPListener. |
LDAPConnectionFactoryImpl getLDAPConnectionFactory(String host, int port, LDAPOptions 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.LDAPConnectionFactoryLDAPListenerImpl getLDAPListener(InetSocketAddress address, ServerConnectionFactory<LDAPClientContext,Integer> factory, LDAPListenerOptions 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.LDAPListenerIOException - If an error occurred while trying to listen on the provided
address.Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.