public final class GrizzlyLDAPListener extends Object implements LDAPListenerImpl
Constructor and Description |
---|
GrizzlyLDAPListener(InetSocketAddress address,
ServerConnectionFactory<LDAPClientContext,Integer> factory,
Options options)
Creates a new LDAP listener implementation which will listen for LDAP
client connections using the provided address and connection options.
|
GrizzlyLDAPListener(InetSocketAddress address,
ServerConnectionFactory<LDAPClientContext,Integer> factory,
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.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this stream and releases any system resources associated
with it.
|
InetSocketAddress |
getSocketAddress()
Returns the address that this LDAP listener is listening on.
|
String |
toString() |
public GrizzlyLDAPListener(InetSocketAddress address, ServerConnectionFactory<LDAPClientContext,Integer> factory, Options options) throws IOException
address
- The address to listen on.factory
- The server connection factory which will be used to create
server connections.options
- The LDAP listener options.IOException
- If an error occurred while trying to listen on the provided
address.public GrizzlyLDAPListener(InetSocketAddress address, ServerConnectionFactory<LDAPClientContext,Integer> factory, Options options, org.glassfish.grizzly.nio.transport.TCPNIOTransport transport) throws IOException
address
- The address to listen on.factory
- 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. If null
, default transport will be used.IOException
- If an error occurred while trying to listen on the provided
address.public void close()
LDAPListenerImpl
close
in interface Closeable
close
in interface AutoCloseable
close
in interface LDAPListenerImpl
public InetSocketAddress getSocketAddress()
LDAPListenerImpl
getSocketAddress
in interface LDAPListenerImpl
Copyright 2010-2017 ForgeRock AS.