Package org.forgerock.opendj.grizzly
Class GrizzlyLDAPListener
- java.lang.Object
-
- org.forgerock.opendj.grizzly.GrizzlyLDAPListener
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.forgerock.opendj.ldap.spi.LDAPListenerImpl
public final class GrizzlyLDAPListener extends Object implements org.forgerock.opendj.ldap.spi.LDAPListenerImpl
LDAP listener implementation using Grizzly for transport.
-
-
Constructor Summary
Constructors Constructor Description GrizzlyLDAPListener(Set<InetSocketAddress> addresses, org.forgerock.util.Function<org.forgerock.opendj.ldap.LDAPClientContext,com.forgerock.reactive.ReactiveHandler<org.forgerock.opendj.ldap.LDAPClientContext,org.forgerock.opendj.ldap.spi.LdapMessages.LdapRequestEnvelope,com.forgerock.reactive.Stream<org.forgerock.opendj.ldap.responses.Response>>,org.forgerock.opendj.ldap.LdapException> requestHandlerFactory, org.forgerock.util.Options options, org.glassfish.grizzly.nio.transport.TCPNIOTransport transport)Creates a new LDAP listener implementation which will listen for LDAP client connections using the provided address, connection options and provided TCP transport.GrizzlyLDAPListener(Set<InetSocketAddress> addresses, org.forgerock.util.Options options, org.forgerock.util.Function<org.forgerock.opendj.ldap.LDAPClientContext,com.forgerock.reactive.ReactiveHandler<org.forgerock.opendj.ldap.LDAPClientContext,org.forgerock.opendj.ldap.spi.LdapMessages.LdapRequestEnvelope,com.forgerock.reactive.Stream<org.forgerock.opendj.ldap.responses.Response>>,org.forgerock.opendj.ldap.LdapException> requestHandlerFactory)Creates a new LDAP listener implementation which will listen for LDAP client connections using the provided address and connection options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Set<InetSocketAddress>getSocketAddresses()StringtoString()
-
-
-
Constructor Detail
-
GrizzlyLDAPListener
public GrizzlyLDAPListener(Set<InetSocketAddress> addresses, org.forgerock.util.Options options, org.forgerock.util.Function<org.forgerock.opendj.ldap.LDAPClientContext,com.forgerock.reactive.ReactiveHandler<org.forgerock.opendj.ldap.LDAPClientContext,org.forgerock.opendj.ldap.spi.LdapMessages.LdapRequestEnvelope,com.forgerock.reactive.Stream<org.forgerock.opendj.ldap.responses.Response>>,org.forgerock.opendj.ldap.LdapException> requestHandlerFactory) throws IOException
Creates a new LDAP listener implementation which will listen for LDAP client connections using the provided address and connection options.- Parameters:
addresses- The addresses to listen on.options- The LDAP listener options.requestHandlerFactory- The server connection factory which will be used to create server connections.- Throws:
IOException- If an error occurred while trying to listen on the provided address.
-
GrizzlyLDAPListener
public GrizzlyLDAPListener(Set<InetSocketAddress> addresses, org.forgerock.util.Function<org.forgerock.opendj.ldap.LDAPClientContext,com.forgerock.reactive.ReactiveHandler<org.forgerock.opendj.ldap.LDAPClientContext,org.forgerock.opendj.ldap.spi.LdapMessages.LdapRequestEnvelope,com.forgerock.reactive.Stream<org.forgerock.opendj.ldap.responses.Response>>,org.forgerock.opendj.ldap.LdapException> requestHandlerFactory, org.forgerock.util.Options options, org.glassfish.grizzly.nio.transport.TCPNIOTransport transport) throws IOException
Creates a new LDAP listener implementation which will listen for LDAP client connections using the provided address, connection options and provided TCP transport.- Parameters:
addresses- The addresses to listen on.requestHandlerFactory- The server connection factory which will be used to create server connections.options- The LDAP listener options.transport- Grizzly TCP Transport NIO implementation to use for connections. Ifnull, default transport will be used.- Throws:
IOException- If an error occurred while trying to listen on the provided address.
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.forgerock.opendj.ldap.spi.LDAPListenerImpl
-
getSocketAddresses
public Set<InetSocketAddress> getSocketAddresses()
- Specified by:
getSocketAddressesin interfaceorg.forgerock.opendj.ldap.spi.LDAPListenerImpl
-
-