public class LDAPWriter extends Object implements Closeable
Constructor and Description |
---|
LDAPWriter(Socket socket)
Creates a new LDAP writer that will write messages to the provided
socket and trace the messages using a provided tracer.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this LDAP writer and the underlying socket.
|
void |
writeMessage(LDAPMessage message)
Writes an LDAP message to the associated output stream.
|
public LDAPWriter(Socket socket) throws IOException
socket
- The socket to use to write LDAP messages.IOException
- If a problem occurs while attempting to obtain an
output stream for the socket.public void writeMessage(LDAPMessage message) throws IOException
message
- The message to be written.IOException
- If a problem occurs while trying to write the
information over the output stream.public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.