|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.tools.LDAPWriter
public class LDAPWriter
This class defines a utility that can be used to write LDAP messages over a provided socket.
| Constructor Summary | |
|---|---|
LDAPWriter(java.net.Socket socket)
Creates a new LDAP writer that will write messages to the provided socket. |
|
LDAPWriter(java.net.Socket socket,
VerboseTracer tracer)
Creates a new LDAP writer that will write messages to the provided socket and trace the messages using a provided tracer. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this LDAP writer and the underlying socket. |
ASN1Writer |
getASN1Writer()
Get the underlying ASN1 writer. |
void |
writeMessage(LDAPMessage message)
Writes an LDAP message to the associated output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LDAPWriter(java.net.Socket socket)
throws java.io.IOException
socket - The socket to use to write LDAP messages.
java.io.IOException - If a problem occurs while attempting to obtain an
ASN.1 reader for the socket.
public LDAPWriter(java.net.Socket socket,
VerboseTracer tracer)
throws java.io.IOException
socket - The socket to use to write LDAP messages.tracer - Specifies a tracer to be used for tracing messages written.
java.io.IOException - If a problem occurs while attempting to obtain an
output stream for the socket.| Method Detail |
|---|
public void writeMessage(LDAPMessage message)
throws java.io.IOException
message - The message to be written.
java.io.IOException - If a problem occurs while trying to write the
information over the output stream.public void close()
public ASN1Writer getASN1Writer()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||