public interface TransportProvider extends Provider
LdapSocket
class, using a specific
transport.
A ldap socket provider must be declared in the provider-configuration file
META-INF/services/org.forgerock.opendj.ldap.spi.LdapSocketProvider
in order to allow automatic loading of the
implementation classes using the java.util.ServiceLoader
facility.
Modifier and Type | Method and Description |
---|---|
LdapSocketAcceptor |
newLdapSocketAcceptor(Set<InetSocketAddress> addresses,
Options options,
Consumer<LdapSocket> handler)
Returns an implementation of
LdapSocketAcceptor . |
LdapSocketConnector |
newLdapSocketConnector(String host,
int port,
Options options)
Returns an implementation of
LdapSocketConnector . |
LdapSocketConnector newLdapSocketConnector(String host, int port, Options options)
LdapSocketConnector
. 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.LdapSocketConnector
LdapSocketAcceptor newLdapSocketAcceptor(Set<InetSocketAddress> addresses, Options options, Consumer<LdapSocket> handler) throws IOException
LdapSocketAcceptor
.addresses
- The addresses to listen on.options
- The LDAP listener options.handler
- The handler which will process incoming connections. Must be thread safe.LdapSocketAcceptor
IOException
- If an error occurred while trying to listen on the provided address.Copyright © 2010-2018, ForgeRock All Rights Reserved.