public final class GrizzlyLdapSocketConnector extends org.glassfish.grizzly.filterchain.BaseFilter implements LdapSocketConnector
Constructor and Description |
---|
GrizzlyLdapSocketConnector(String host,
int port,
Options options)
Creates a new LDAP socket connector based on Grizzly which can be used to create socket connected to the
Directory Server at the provided host and port address using provided options.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Releases any resources associated with this connector.
|
io.reactivex.Single<LdapSocket> |
connect()
Returns a
Single which connects to a peer each time it is subscribed. |
org.glassfish.grizzly.filterchain.NextAction |
handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx) |
org.glassfish.grizzly.filterchain.NextAction |
handleWrite(org.glassfish.grizzly.filterchain.FilterChainContext ctx) |
public GrizzlyLdapSocketConnector(String host, int port, Options options)
host
- The hostname of the Directory Server to connect to.port
- The port number of the Directory Server to connect to.options
- The LDAP connection options to use when creating connections.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 io.reactivex.Single<LdapSocket> connect()
LdapSocketConnector
Single
which connects to a peer each time it is subscribed.connect
in interface LdapSocketConnector
Single
which connects to a peer each time it is subscribed.public void close()
LdapSocketConnector
IllegalStateException
.
Calling this method on a connector that is already closed has no effect.
close
in interface Closeable
close
in interface AutoCloseable
close
in interface LdapSocketConnector
Copyright 2011-2017 ForgeRock AS.