public final class GrizzlyLdapSocketAcceptor extends org.glassfish.grizzly.filterchain.BaseFilter implements LdapSocketAcceptor
Constructor and Description |
---|
GrizzlyLdapSocketAcceptor(Set<InetSocketAddress> addresses,
Options options,
Consumer<LdapSocket> handler)
Creates a new LDAP acceptor implementation which will accept LDAP client connections using the provided address,
connection options and provided TCP transport.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this LDAP socket acceptor.
|
Options |
getOptions()
Returns a copy of the options currently used by this LDAP listener.
|
Set<InetSocketAddress> |
getSocketAddresses()
Returns the addresses that this LDAP socket acceptor is listening on.
|
org.glassfish.grizzly.filterchain.NextAction |
handleAccept(org.glassfish.grizzly.filterchain.FilterChainContext ctx) |
org.glassfish.grizzly.filterchain.NextAction |
handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx) |
org.glassfish.grizzly.filterchain.NextAction |
handleWrite(org.glassfish.grizzly.filterchain.FilterChainContext ctx) |
boolean |
setOptions(Options options)
Updates the options of this LDAP socket acceptor.
|
String |
toString() |
public GrizzlyLdapSocketAcceptor(Set<InetSocketAddress> addresses, Options options, Consumer<LdapSocket> handler) throws IOException
addresses
- The addresses to listen on.options
- The LDAP connection acceptor options.handler
- The handler which will process incoming connections. Musts be thread safe.IOException
- If an error occurred while trying to listen on the provided address.public org.glassfish.grizzly.filterchain.NextAction handleAccept(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
handleAccept
in interface org.glassfish.grizzly.filterchain.Filter
handleAccept
in class org.glassfish.grizzly.filterchain.BaseFilter
public org.glassfish.grizzly.filterchain.NextAction handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
handleRead
in interface org.glassfish.grizzly.filterchain.Filter
handleRead
in class org.glassfish.grizzly.filterchain.BaseFilter
public org.glassfish.grizzly.filterchain.NextAction handleWrite(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
handleWrite
in interface org.glassfish.grizzly.filterchain.Filter
handleWrite
in class org.glassfish.grizzly.filterchain.BaseFilter
public boolean setOptions(Options options)
LdapSocketAcceptor
setOptions
in interface LdapSocketAcceptor
options
- The LDAP socket acceptor options.true
if some or all options have been applied, false
if options cannot be changed.public Options getOptions()
LdapSocketAcceptor
LdapSocketAcceptor.setOptions(Options)
.getOptions
in interface LdapSocketAcceptor
public Set<InetSocketAddress> getSocketAddresses()
LdapSocketAcceptor
getSocketAddresses
in interface LdapSocketAcceptor
public void close()
LdapSocketAcceptor
Calling this method on an acceptor that is already closed has no effect.
close
in interface Closeable
close
in interface AutoCloseable
close
in interface LdapSocketAcceptor
public String toString()
toString
in class org.glassfish.grizzly.filterchain.BaseFilter
Copyright 2011-2017 ForgeRock AS.